Lines Matching refs:internal
34 #define ASOC(field,name,flags) internal.field=rassociate(name,flags)
35 #define ATTR(field,name,flags) internal.field=rinternal(name,P_attribute|(flags))
37 #define INIT(field,name,flags) internal.field=rinternal(name,flags)
452 if ((r->attribute ^ o->attribute) & ~internal.accept->attribute)
568 if (r == internal.retain || r == internal.state)
571 a = r == internal.retain ? V_retain : V_scan;
581 else if (r == internal.rebind || r == internal.accept)
584 i = r == internal.accept;
588 else if (r == internal.unbind)
597 else if (r == internal.bind || r == internal.force)
605 if (r == internal.force)
613 else if (r == internal.always || r == internal.local || r == internal.make || r == internal.run)
626 p->rule = internal.empty;
634 if (r != internal.run)
649 if (r == internal.make)
654 else if (r == internal.include)
678 else if (r == internal.alarm)
693 else if (r == internal.sync)
703 else if (r == internal.reset)
708 else if (r == internal.wait)
713 else if (r == internal.freeze)
899 if (a == internal.accept) return n & P_accept;
900 if (a == internal.attribute) return n & P_attribute;
901 if (a == internal.ignore) return n & P_ignore;
903 if (a != internal.retain)
906 if (x && (a->attribute & x->attribute & ~internal.ignore->attribute) && ((r->property & (P_attribute|P_use)) != P_attribute || r == internal.accept || r == internal.ignore || r == internal.retain)) return 1;
914 if (a == internal.make) return n & P_make;
915 if (a == internal.readonly) return n & P_readonly;
916 if (a == internal.scan) return r->scan || x && x->scan;
917 if (a == internal.semaphore) return r->semaphore;
918 if (a == internal.target) return n & P_target;
926 if (a == internal.after) return n & P_after;
927 if (a == internal.always) return n & P_always;
928 if (a == internal.archive) return n & P_archive;
929 if (a == internal.before) return n & P_before;
930 if (a == internal.command) return n & P_command;
931 if (a == internal.dontcare) return n & P_dontcare;
932 if (a == internal.force) return n & P_force;
933 if (a == internal.foreground) return n & P_foreground;
934 if (a == internal.functional) return n & P_functional;
935 if (a == internal.immediate) return n & P_immediate;
936 if (a == internal.implicit) return n & P_implicit;
937 if (a == internal.joint) return n & P_joint;
938 if (a == internal.local) return n & P_local;
939 if (a == internal.multiple) return n & P_multiple;
940 if (a == internal.op) return n & P_operator;
941 if (a == internal.parameter) return n & P_parameter;
942 if (a == internal.read) return n & P_read;
943 if (a == internal.repeat) return n & P_repeat;
944 if (a == internal.state) return n & P_state;
945 if (a == internal.terminal) return n & P_terminal;
946 if (a == internal.use) return n & P_use;
947 if (a == internal.virt) return n & P_virtual;
961 if (a == internal.bound) return n & D_bound;
962 if (a == internal.built) return n & D_built;
963 if (a == internal.entries) return n & D_entries;
964 if (a == internal.global) return n & D_global;
965 if (a == internal.member) return n & (D_member|D_membertoo);
966 if (a == internal.regular) return n & D_regular;
967 if (a == internal.scanned) return n & D_scanned;
968 if (a == internal.source) return n & D_source;
969 if (a == internal.triggered) return n & D_triggered;
970 if (a == internal.file) return (n & D_bound) && !(r->property & (P_state|P_virtual)) && r->time;
977 if (a == internal.internal) return n & P_internal;
978 if (a == internal.metarule) return n & P_metarule;
979 if (a == internal.staterule) return n & P_staterule;
980 if (a == internal.statevar) return n & P_statevar;
987 if (a == internal.exists) return n == EXISTS;
988 if (a == internal.failed) return n == FAILED;
989 if (a == internal.making) return n == MAKING;
990 if (a == internal.notyet) return n == NOTYET;
996 if (a == internal.active) return r->active != 0;
1102 if (from->attribute && from != internal.accept && from != internal.ignore && from != internal.retain && ((to->property & (P_attribute|P_use)) != P_attribute || to == internal.accept || to == internal.ignore || to == internal.retain))
1109 if (from->attribute && from != internal.accept && from != internal.ignore && from != internal.retain && ((to->property & (P_attribute|P_use)) != P_attribute || to == internal.accept || to == internal.ignore || to == internal.retain))
1110 to->attribute |= from->attribute & ~internal.ignore->attribute;
1207 * make an internal rule pointer
1223 * make an internal pattern association rule pointer
1263 sfprintf(internal.val, "%d", state.coshell ? state.coshell->outstanding : 0);
1264 return sfstruse(internal.val);
1340 sfprintf(internal.wrk, "%s%s", prefix, opt_info.name);
1341 setvar(sfstruse(internal.wrk), opt_info.arg && *opt_info.arg ? opt_info.arg : opt_info.num ? "1" : null, 0);
1385 sfprintf(internal.val, "%d", (call = (Systab_t*)strlook(systab, sizeof(systab[0]), *args)) ? (*call->call)() : -1);
1386 return sfstruse(internal.val);
1448 * initialize some attribute and internal rule pointers
1494 * anonymous attributes (no internal handle)
1538 INIT(internal, ".INTERNAL", P_internal|P_readonly);
1585 putrule(".DEBUG", internal.query);
1597 frame.target = internal.internal;
1599 internal.attribute->attribute = 1;
1600 internal.empty->dynamic |= D_bound;
1601 internal.empty->status = IGNORE;
1602 internal.empty->time = OLDTIME;
1603 internal.scan->scan = SCAN_USER;
1604 addprereq(internal.source, internal.dot, PREREQ_APPEND);
1605 addprereq(internal.special, internal.attribute, PREREQ_APPEND);
1606 addprereq(internal.special, internal.scan, PREREQ_APPEND);
1607 sfprintf(internal.tmp, "%s?(.*)", internal.source->name);
1608 internal.issource = strdup(sfstruse(internal.tmp));
1631 if (internal.metarule->dynamic & D_dynamic)
1632 dynamic(internal.metarule);
1657 if ((unique(r) || !r->time) && !streq(r->name, internal.dot->name) && !streq(r->name, internal.pwd))
1713 p = internal.view->prereqs = cons(internal.dot, NiL);
1756 unique(internal.dot);
1763 sfprintf(internal.tmp, "%s/", internal.pwd);
1764 sfputr(internal.tmp, s, -1);
1765 t = sfstruse(internal.tmp);
1771 if (strncmp(internal.pwd, t, n) || (c = internal.pwd[n]) && c != '/')
1782 sfputr(internal.nam, internal.pwd, -1);
1783 u = sfstruse(internal.nam);
1789 sfprintf(internal.nam, "%s%s", t, internal.pwd + (s - u));
1790 pwd = strdup(sfstruse(internal.nam));
1808 internal.pwd = pwd;
1809 internal.pwdlen = pwdlen;
1810 setvar(external.pwd, internal.pwd, V_import);
1826 sfprintf(internal.tmp, "%s/", internal.pwd);
1827 sfprintf(internal.tmp, "%s%s", s, internal.pwd + n);
1828 p = view(s, sfstruse(internal.tmp), p);
1849 sfprintf(internal.tmp, "%s/%s", c ? state.view[c].path->name : internal.pwd, s);
1851 sfprintf(internal.tmp, "%s/%s", c ? state.view[c].path : internal.pwd, s);
1853 p = view(sfstruse(internal.tmp), NiL, p);