Lines Matching refs:conditionals
75 struct conditionals struct
85 static struct conditionals toplevel_conditionals; argument
86 static struct conditionals *conditionals = &toplevel_conditionals; variable
273 static struct conditionals *
274 install_conditionals (struct conditionals *new) in install_conditionals()
276 struct conditionals *save = conditionals; in install_conditionals()
279 conditionals = new; in install_conditionals()
287 restore_conditionals (struct conditionals *saved) in restore_conditionals()
290 if (conditionals->ignoring) in restore_conditionals()
291 free (conditionals->ignoring); in restore_conditionals()
292 if (conditionals->seen_else) in restore_conditionals()
293 free (conditionals->seen_else); in restore_conditionals()
296 conditionals = saved; in restore_conditionals()
419 struct conditionals *saved; in eval_buffer()
420 struct conditionals new; in eval_buffer()
791 struct conditionals *save; in eval()
792 struct conditionals new_conditionals; in eval()
1285 if (conditionals->if_cmds) in eval()
1462 if (!conditionals->if_cmds) in conditional_line()
1465 --conditionals->if_cmds; in conditional_line()
1476 if (!conditionals->if_cmds) in conditional_line()
1479 o = conditionals->if_cmds - 1; in conditional_line()
1481 if (conditionals->seen_else[o]) in conditional_line()
1485 switch (conditionals->ignoring[o]) in conditional_line()
1489 conditionals->ignoring[o] = 2; in conditional_line()
1493 conditionals->ignoring[o] = 0; in conditional_line()
1500 conditionals->seen_else[o] = 1; in conditional_line()
1520 if (conditionals->ignoring[o] < 2) in conditional_line()
1521 conditionals->ignoring[o] = conditionals->ignoring[o+1]; in conditional_line()
1522 --conditionals->if_cmds; in conditional_line()
1528 if (conditionals->allocated == 0) in conditional_line()
1530 conditionals->allocated = 5; in conditional_line()
1531 conditionals->ignoring = (char *) xmalloc (conditionals->allocated); in conditional_line()
1532 conditionals->seen_else = (char *) xmalloc (conditionals->allocated); in conditional_line()
1535 o = conditionals->if_cmds++; in conditional_line()
1536 if (conditionals->if_cmds > conditionals->allocated) in conditional_line()
1538 conditionals->allocated += 5; in conditional_line()
1539 conditionals->ignoring = (char *) in conditional_line()
1540 xrealloc (conditionals->ignoring, conditionals->allocated); in conditional_line()
1541 conditionals->seen_else = (char *) in conditional_line()
1542 xrealloc (conditionals->seen_else, conditionals->allocated); in conditional_line()
1546 conditionals->seen_else[o] = 0; in conditional_line()
1550 if (conditionals->ignoring[i]) in conditional_line()
1555 conditionals->ignoring[o] = 1; in conditional_line()
1579 conditionals->ignoring[o] = in conditional_line()
1675 conditionals->ignoring[o] = (streq (s1, s2) == (cmdtype == c_ifneq)); in conditional_line()
1680 for (i = 0; i < conditionals->if_cmds; ++i) in conditional_line()
1681 if (conditionals->ignoring[i]) in conditional_line()