Lines Matching refs:conditionals
67 /* A `struct conditionals' contains the information describing
68 all the active conditionals in a makefile.
70 The global variable `conditionals' contains the conditionals
75 struct conditionals
85 static struct conditionals toplevel_conditionals;
86 static struct conditionals *conditionals = &toplevel_conditionals;
275 static struct conditionals *
276 install_conditionals (struct conditionals *new)
278 struct conditionals *save = conditionals;
281 conditionals = new;
286 /* Free the current conditionals and reinstate a saved one. */
289 restore_conditionals (struct conditionals *saved)
292 if (conditionals->ignoring)
293 free (conditionals->ignoring);
294 if (conditionals->seen_else)
295 free (conditionals->seen_else);
298 conditionals = saved;
422 struct conditionals *saved;
423 struct conditionals new;
697 /* Ignore the line. We continue here so conditionals
795 struct conditionals *save;
796 struct conditionals new_conditionals;
819 /* Save the state of conditionals and start
1289 if (conditionals->if_cmds)
1468 if (!conditionals->if_cmds)
1471 --conditionals->if_cmds;
1482 if (!conditionals->if_cmds)
1485 o = conditionals->if_cmds - 1;
1487 if (conditionals->seen_else[o])
1491 switch (conditionals->ignoring[o])
1495 conditionals->ignoring[o] = 2;
1499 conditionals->ignoring[o] = 0;
1506 conditionals->seen_else[o] = 1;
1526 if (conditionals->ignoring[o] < 2)
1527 conditionals->ignoring[o] = conditionals->ignoring[o+1];
1528 --conditionals->if_cmds;
1534 if (conditionals->allocated == 0)
1536 conditionals->allocated = 5;
1537 conditionals->ignoring = (char *) xmalloc (conditionals->allocated);
1538 conditionals->seen_else = (char *) xmalloc (conditionals->allocated);
1541 o = conditionals->if_cmds++;
1542 if (conditionals->if_cmds > conditionals->allocated)
1544 conditionals->allocated += 5;
1545 conditionals->ignoring = (char *)
1546 xrealloc (conditionals->ignoring, conditionals->allocated);
1547 conditionals->seen_else = (char *)
1548 xrealloc (conditionals->seen_else, conditionals->allocated);
1552 conditionals->seen_else[o] = 0;
1556 if (conditionals->ignoring[i])
1561 conditionals->ignoring[o] = 1;
1585 conditionals->ignoring[o] =
1681 conditionals->ignoring[o] = (streq (s1, s2) == (cmdtype == c_ifneq));
1686 for (i = 0; i < conditionals->if_cmds; ++i)
1687 if (conditionals->ignoring[i])