Lines Matching refs:idx

1301     int		idx;  in ex_continue()  local
1312 idx = cleanup_conditionals(cstack, CSF_WHILE | CSF_FOR, FALSE); in ex_continue()
1313 if (idx >= 0 && (cstack->cs_flags[idx] & (CSF_WHILE | CSF_FOR))) in ex_continue()
1315 rewind_conditionals(cstack, idx, CSF_TRY, &cstack->cs_trylevel); in ex_continue()
1327 cstack->cs_pending[idx] = CSTP_CONTINUE; in ex_continue()
1339 int idx; in ex_break() local
1350 idx = cleanup_conditionals(cstack, CSF_WHILE | CSF_FOR, TRUE); in ex_break()
1351 if (idx >= 0 && !(cstack->cs_flags[idx] & (CSF_WHILE | CSF_FOR))) in ex_break()
1353 cstack->cs_pending[idx] = CSTP_BREAK; in ex_break()
1366 int idx; in ex_endwhile() local
1406 for (idx = cstack->cs_idx; idx > 0; --idx) in ex_endwhile()
1408 fl = cstack->cs_flags[idx]; in ex_endwhile()
1421 rewind_conditionals(cstack, idx, CSF_TRY, &cstack->cs_trylevel); in ex_endwhile()
1525 int idx; in do_throw() local
1551 idx = cleanup_conditionals(cstack, 0, inactivate_try); in do_throw()
1552 if (idx >= 0) in do_throw()
1567 if (!(cstack->cs_flags[idx] & CSF_CAUGHT)) in do_throw()
1569 if (cstack->cs_flags[idx] & CSF_ACTIVE) in do_throw()
1570 cstack->cs_flags[idx] |= CSF_THROWN; in do_throw()
1575 cstack->cs_flags[idx] &= ~CSF_THROWN; in do_throw()
1577 cstack->cs_flags[idx] &= ~CSF_ACTIVE; in do_throw()
1578 cstack->cs_exception[idx] = current_exception; in do_throw()
1678 int idx = 0; in ex_catch() local
1707 for (idx = cstack->cs_idx; idx > 0; --idx) in ex_catch()
1708 if (cstack->cs_flags[idx] & CSF_TRY) in ex_catch()
1710 if (cstack->cs_flags[idx] & CSF_TRY) in ex_catch()
1711 cstack->cs_flags[idx] |= CSF_CATCH; in ex_catch()
1712 if (cstack->cs_flags[idx] & CSF_FINALLY) in ex_catch()
1720 rewind_conditionals(cstack, idx, CSF_WHILE | CSF_FOR, in ex_catch()
1745 if (!did_throw || !(cstack->cs_flags[idx] & CSF_TRUE)) in ex_catch()
1753 if (!skip && (cstack->cs_flags[idx] & CSF_THROWN) in ex_catch()
1754 && !(cstack->cs_flags[idx] & CSF_CAUGHT)) in ex_catch()
1813 cstack->cs_flags[idx] |= CSF_ACTIVE | CSF_CAUGHT; in ex_catch()
1815 catch_exception((except_T *)cstack->cs_exception[idx]); in ex_catch()
1850 int idx; in ex_finally() local
1865 for (idx = cstack->cs_idx - 1; idx > 0; --idx) in ex_finally()
1866 if (cstack->cs_flags[idx] & CSF_TRY) in ex_finally()
1874 idx = cstack->cs_idx; in ex_finally()
1876 if (cstack->cs_flags[idx] & CSF_FINALLY) in ex_finally()
1882 rewind_conditionals(cstack, idx, CSF_WHILE | CSF_FOR, in ex_finally()
1980 int idx; in ex_endtry() local
2013 idx = cstack->cs_idx; in ex_endtry()
2015 --idx; in ex_endtry()
2016 while (idx > 0 && !(cstack->cs_flags[idx] & CSF_TRY)); in ex_endtry()
2017 rewind_conditionals(cstack, idx, CSF_WHILE | CSF_FOR, in ex_endtry()
2036 idx = cstack->cs_idx; in ex_endtry()
2040 && (cstack->cs_flags[idx] & (CSF_CATCH|CSF_FINALLY)) == 0) in ex_endtry()
2053 if (did_throw && (cstack->cs_flags[idx] & CSF_TRUE) in ex_endtry()
2054 && !(cstack->cs_flags[idx] & CSF_FINALLY)) in ex_endtry()
2066 && !(cstack->cs_flags[idx] & CSF_FINALLY) in ex_endtry()
2067 && !cstack->cs_pending[idx])) in ex_endtry()
2080 if (did_throw && !(cstack->cs_flags[idx] & CSF_FINALLY)) in ex_endtry()
2093 pending = cstack->cs_pending[idx]; in ex_endtry()
2094 cstack->cs_pending[idx] = CSTP_NONE; in ex_endtry()
2096 rettv = cstack->cs_rettv[idx]; in ex_endtry()
2098 current_exception = cstack->cs_exception[idx]; in ex_endtry()
2347 int idx; in cleanup_conditionals() local
2350 for (idx = cstack->cs_idx; idx >= 0; --idx) in cleanup_conditionals()
2352 if (cstack->cs_flags[idx] & CSF_TRY) in cleanup_conditionals()
2360 if (did_emsg || got_int || (cstack->cs_flags[idx] & CSF_FINALLY)) in cleanup_conditionals()
2362 switch (cstack->cs_pending[idx]) in cleanup_conditionals()
2370 report_discard_pending(cstack->cs_pending[idx], NULL); in cleanup_conditionals()
2371 cstack->cs_pending[idx] = CSTP_NONE; in cleanup_conditionals()
2376 cstack->cs_rettv[idx]); in cleanup_conditionals()
2377 discard_pending_return(cstack->cs_rettv[idx]); in cleanup_conditionals()
2378 cstack->cs_pending[idx] = CSTP_NONE; in cleanup_conditionals()
2382 if (cstack->cs_flags[idx] & CSF_FINALLY) in cleanup_conditionals()
2384 if ((cstack->cs_pending[idx] & CSTP_THROW) in cleanup_conditionals()
2385 && cstack->cs_exception[idx] != NULL) in cleanup_conditionals()
2391 (except_T *)cstack->cs_exception[idx], in cleanup_conditionals()
2395 report_discard_pending(cstack->cs_pending[idx], in cleanup_conditionals()
2397 cstack->cs_pending[idx] = CSTP_NONE; in cleanup_conditionals()
2408 if (!(cstack->cs_flags[idx] & CSF_FINALLY)) in cleanup_conditionals()
2410 if ((cstack->cs_flags[idx] & CSF_ACTIVE) in cleanup_conditionals()
2411 && (cstack->cs_flags[idx] & CSF_CAUGHT) in cleanup_conditionals()
2412 && !(cstack->cs_flags[idx] & CSF_FINISHED)) in cleanup_conditionals()
2414 finish_exception((except_T *)cstack->cs_exception[idx]); in cleanup_conditionals()
2415 cstack->cs_flags[idx] |= CSF_FINISHED; in cleanup_conditionals()
2421 if (cstack->cs_flags[idx] & CSF_TRUE) in cleanup_conditionals()
2434 if (cstack->cs_flags[idx] & searched_cond) in cleanup_conditionals()
2440 cstack->cs_flags[idx] &= ~CSF_ACTIVE; in cleanup_conditionals()
2449 if ((cstack->cs_flags[idx] & CSF_TRY) in cleanup_conditionals()
2450 && (cstack->cs_flags[idx] & CSF_SILENT)) in cleanup_conditionals()
2458 cstack->cs_flags[idx] &= ~CSF_SILENT; in cleanup_conditionals()
2463 return idx; in cleanup_conditionals()
2490 int idx, in rewind_conditionals() argument
2494 while (cstack->cs_idx > idx) in rewind_conditionals()