Home
last modified time | relevance | path

Searched refs:ifstate (Results 1 – 5 of 5) sorted by relevance

/openbsd/libexec/tradcpp/
H A Ddirective.c46 struct ifstate { struct
54 static struct ifstate *ifstate; variable
128 struct ifstate *
131 struct ifstate *is; in ifstate_create()
164 ifstate = newstate; in ifstate_push()
171 struct ifstate *is; in ifstate_pop()
173 is = ifstate; in ifstate_pop()
174 ifstate = ifstate->prev; in ifstate_pop()
274 ifstate->evertrue = ifstate->curtrue; in d_elif()
301 ifstate->curtrue = !ifstate->evertrue; in d_else()
[all …]
/openbsd/usr.sbin/ifstated/
H A Difstated.c461 struct ifsd_ifstate *ifstate; in scan_ifstate_single() local
469 if (ifstate->prevstate != s && in scan_ifstate_single()
475 (ifstate->ifstate == IFSD_LINKUNKNOWN && in scan_ifstate_single()
477 (ifstate->ifstate == IFSD_LINKDOWN && in scan_ifstate_single()
479 (ifstate->ifstate == IFSD_LINKUP && in scan_ifstate_single()
483 &ifstate->expressions, entries) { in scan_ifstate_single()
489 ifstate->prevstate = s; in scan_ifstate_single()
660 struct ifsd_ifstate *ifstate; in check_ifdeparture() local
665 scan_ifstate(ifstate->ifname, in check_ifdeparture()
728 expression->u.ifstate, entries); in remove_expression()
[all …]
H A Dparse.y98 struct ifsd_ifstate *ifstate; member
117 %type <v.ifstate> if_test
280 $$->u.ifstate = $1;
943 ifstate->ifstate == s) in new_ifstate()
945 if (ifstate == NULL) { in new_ifstate()
946 if ((ifstate = calloc(1, sizeof(*ifstate))) == NULL) in new_ifstate()
949 sizeof(ifstate->ifname)) >= sizeof(ifstate->ifname)) in new_ifstate()
952 ifstate->ifstate = s; in new_ifstate()
956 ifstate->prevstate = -1; in new_ifstate()
957 ifstate->refcount++; in new_ifstate()
[all …]
H A Difstated.h38 int ifstate; member
88 struct ifsd_ifstate *ifstate; member
/openbsd/usr.bin/unifdef/
H A Dunifdef.c206 static Ifstate ifstate[MAXDEPTH]; /* #if processor state */ variable
678 ifstate[depth] = is; in state()
772 trans_table[ifstate[depth]][lineval](); in process()
775 ifstate_name[ifstate[depth]], depth); in process()