Lines Matching refs:u

218 	for (; namep != NULL; namep = namep->u.name.next) {  in tname_dup()
221 newnp->u.name.t = namep->u.name.t; in tname_dup()
222 newnp->u.name.s = namep->u.name.s; in tname_dup()
223 newnp->u.name.last = newnp; in tname_dup()
224 newnp->u.name.it = namep->u.name.it; in tname_dup()
225 newnp->u.name.cp = namep->u.name.cp; in tname_dup()
230 npc = namep->u.name.child; in tname_dup()
234 newnp->u.name.child = in tname_dup()
236 newnp->u.name.child->u.ull = in tname_dup()
237 npc->u.ull; in tname_dup()
240 newnp->u.name.child = in tname_dup()
241 tree_name(npc->u.name.s, in tname_dup()
242 npc->u.name.it, file, line); in tname_dup()
255 retp->u.name.last->u.name.next = newnp; in tname_dup()
256 retp->u.name.last = newnp; in tname_dup()
291 for (npref = epname; npref; npref = npref->u.name.next) { in tname_dup_to_epname()
292 if (npref->u.name.s == oldepname->u.name.s) { in tname_dup_to_epname()
295 np1 = np1->u.name.next, np2 = np2->u.name.next) { in tname_dup_to_epname()
296 if (np1->u.name.s != np2->u.name.s) in tname_dup_to_epname()
324 npref = npref->u.name.next) { in tname_dup_to_epname()
328 newnp->u.name.t = npref->u.name.t; in tname_dup_to_epname()
329 newnp->u.name.s = npref->u.name.s; in tname_dup_to_epname()
330 newnp->u.name.last = newnp; in tname_dup_to_epname()
331 newnp->u.name.it = npref->u.name.it; in tname_dup_to_epname()
332 newnp->u.name.cp = npref->u.name.cp; in tname_dup_to_epname()
334 newnp->u.name.child = newnode(T_NUM, oldepname->file, in tname_dup_to_epname()
337 if (npref->u.name.child == NULL || in tname_dup_to_epname()
338 npref->u.name.child->t != T_NUM) { in tname_dup_to_epname()
341 ASSERT(npref->u.name.cp != NULL); in tname_dup_to_epname()
342 config_getcompname(npref->u.name.cp, NULL, &childnum); in tname_dup_to_epname()
343 newnp->u.name.child->u.ull = childnum; in tname_dup_to_epname()
345 newnp->u.name.child->u.ull = in tname_dup_to_epname()
346 npref->u.name.child->u.ull; in tname_dup_to_epname()
352 ret->u.name.last->u.name.next = newnp; in tname_dup_to_epname()
353 ret->u.name.last = newnp; in tname_dup_to_epname()
370 ret->u.event.ename = tname_dup(oldnode->u.event.ename, CN_NONE); in tevent_dup_to_epname()
371 ret->u.event.epname = tname_dup_to_epname(oldnode->u.event.epname, in tevent_dup_to_epname()
386 ASSERT(orhs->u.event.ename->u.name.t == N_SERD); in nv_instantiate()
391 nrhs->u.stmt.np = tevent_dup_to_epname(orhs, pd->epname); in nv_instantiate()
392 nrhs->u.stmt.lutp = props2instance(orhs, pd->epname); in nv_instantiate()
400 nrhs->u.ull = orhs->u.ull; in nv_instantiate()
405 nrhs->u.ull = orhs->u.ull; in nv_instantiate()
418 nrhs->u.globid.s = orhs->u.globid.s; in nv_instantiate()
439 ASSERT(eventnp->u.event.declp != NULL); in props2instance()
440 lut_walk(eventnp->u.event.declp->u.stmt.lutp, nv_instantiate, &pd); in props2instance()
452 lut_free(dn->u.stmt.lutp, instances_destructor, NULL); in instances_destructor()
453 dn->u.stmt.lutp = NULL; in instances_destructor()
481 if ((diff = ep2->enode->u.event.ename->u.name.s - in event_cmp()
482 ep1->enode->u.event.ename->u.name.s) != 0) in event_cmp()
499 searcheventnode.u.event.ename = &searchenamenode; in itree_lookup()
501 searchenamenode.u.name.s = ename; in itree_lookup()
515 searchevent.ipp = ipath(np->u.event.epname); in find_or_add_event()
524 ret->t = np->u.event.ename->u.name.t; in find_or_add_event()
527 ret->props = props2instance(np, np->u.event.epname); in find_or_add_event()
557 if (cp_s == oldepname->u.name.s) { in hmatch_full_config()
568 saved_ewname = eventnp->u.event.ewname; in hmatch_full_config()
569 saved_epname = eventnp->u.event.epname; in hmatch_full_config()
570 ocp = oldepname->u.name.cp; in hmatch_full_config()
577 eventnp->u.event.ewname = NULL; in hmatch_full_config()
581 cpnode->u.name.child = newnode(T_NUM, NULL, 0); in hmatch_full_config()
582 cpnode->u.name.child->u.ull = cp_num; in hmatch_full_config()
583 cpnode->u.name.cp = pcp; in hmatch_full_config()
584 if (eventnp->u.event.ewname != NULL) { in hmatch_full_config()
585 cpnode->u.name.next = in hmatch_full_config()
586 eventnp->u.event.ewname; in hmatch_full_config()
587 cpnode->u.name.last = in hmatch_full_config()
588 eventnp->u.event.ewname-> in hmatch_full_config()
589 u.name.last; in hmatch_full_config()
591 eventnp->u.event.ewname = cpnode; in hmatch_full_config()
598 ewfp = tname_dup(eventnp->u.event.ewname, CN_DUP); in hmatch_full_config()
599 ewlp = ewfp->u.name.last; in hmatch_full_config()
600 ewfp->u.name.last = oldepname->u.name.last; in hmatch_full_config()
601 ewlp->u.name.next = oldepname; in hmatch_full_config()
602 oldepname->u.name.cp = cp; in hmatch_full_config()
603 eventnp->u.event.epname = ewfp; in hmatch_full_config()
608 eventnp->u.event.epname); in hmatch_full_config()
614 hmatch_event(infop, eventnp, oldepname->u.name.next, in hmatch_full_config()
620 oldepname->u.name.cp = ocp; in hmatch_full_config()
622 ewlp->u.name.next = NULL; in hmatch_full_config()
623 ewfp->u.name.last = ewlp; in hmatch_full_config()
625 tree_free(eventnp->u.event.ewname); in hmatch_full_config()
626 eventnp->u.event.ewname = saved_ewname; in hmatch_full_config()
627 eventnp->u.event.epname = saved_epname; in hmatch_full_config()
688 if (epname->u.name.cp == NULL) in hmatch_event()
698 if (epname->u.name.it == IT_HORIZONTAL || rematch) { in hmatch_event()
700 struct config *ocp = epname->u.name.cp; in hmatch_event()
708 if (epname->u.name.it != IT_HORIZONTAL) { in hmatch_event()
715 iters = epname->u.name.child->u.name.s; in hmatch_event()
744 if (epname == eventnp->u.event.oldepname && in hmatch_event()
745 epname->u.name.it == IT_HORIZONTAL) { in hmatch_event()
761 if (cp_s == epname->u.name.s) { in hmatch_event()
766 epname->u.name.cp = cp; in hmatch_event()
768 epname->u.name.next, config_child(cp), in hmatch_event()
772 epname->u.name.cp = ocp; in hmatch_event()
776 hmatch_event(infop, eventnp, epname->u.name.next, in hmatch_event()
807 if (np->u.expr.left) in hmatch()
808 hmatch(infop, np->u.expr.left, nextnp); in hmatch()
809 if (np->u.expr.right) in hmatch()
810 hmatch(infop, np->u.expr.right, nextnp); in hmatch()
814 hmatch_event(infop, np, np->u.event.epname, in hmatch()
830 else if (norknp->t == T_NAME && norknp->u.name.s == L_A) in itree_np2nork()
833 return ((int)norknp->u.ull); in itree_np2nork()
886 pcp = config_parent(wcp->nptop->u.event.epname->u.name.cp); in vmatch_event()
891 wcp->nptop->u.event.ewname = wcp->ewname; in vmatch_event()
892 wcp->nptop->u.event.oldepname = wcp->oldepname; in vmatch_event()
905 cpnode->u.name.child = newnode(T_NUM, NULL, 0); in vmatch_event()
906 cpnode->u.name.child->u.ull = cp_num; in vmatch_event()
907 cpnode->u.name.cp = pcp; in vmatch_event()
909 cpnode->u.name.next = wcp->ewname; in vmatch_event()
910 cpnode->u.name.last = in vmatch_event()
911 wcp->ewname->u.name.last; in vmatch_event()
921 ewlp = ewfp->u.name.last; in vmatch_event()
922 ewfp->u.name.last = wcp->oldepname->u.name.last; in vmatch_event()
923 ewlp->u.name.next = wcp->oldepname; in vmatch_event()
925 wcp->nptop->u.event.epname = ewfp; in vmatch_event()
926 wcp->nptop->u.event.ewname = wcp->ewname; in vmatch_event()
927 wcp->nptop->u.event.oldepname = wcp->oldepname; in vmatch_event()
930 wcp->nptop->u.event.epname = wcp->oldepname; in vmatch_event()
935 ewlp->u.name.next = NULL; in vmatch_event()
936 ewfp->u.name.last = ewlp; in vmatch_event()
959 if (cp_s == np->u.name.s) { in vmatch_event()
961 if (np->u.name.child && in vmatch_event()
962 np->u.name.child->t == T_NUM) { in vmatch_event()
969 if (cp_num != np->u.name.child->u.ull) in vmatch_event()
972 } else if (np->u.name.it != IT_HORIZONTAL) { in vmatch_event()
989 ASSERT(np->u.name.child != NULL); in vmatch_event()
990 ASSERT(np->u.name.child->t == T_NAME); in vmatch_event()
991 iters = np->u.name.child->u.name.s; in vmatch_event()
1026 if (np == wcp->nptop->u.event.epname) in vmatch_event()
1044 np->u.name.cp = cp; in vmatch_event()
1045 vmatch_event(infop, config_child(cp), np->u.name.next, in vmatch_event()
1047 np->u.name.cp = NULL; in vmatch_event()
1056 if (G.matched && np == wcp->nptop->u.event.epname && in vmatch_event()
1057 np->u.name.it == IT_HORIZONTAL) in vmatch_event()
1099 if (np == wcp->nptop->u.event.epname) in vmatch_event()
1103 if (np->u.name.it == IT_HORIZONTAL) { in vmatch_event()
1111 } else if (np == wcp->nptop->u.event.epname) { in vmatch_event()
1211 itree_np2nork(infop->anp->u.arrow.nnp), in vmatch()
1212 itree_np2nork(infop->anp->u.arrow.knp)); in vmatch()
1213 dst = infop->anp->u.arrow.rhs; in vmatch()
1214 src = infop->anp->u.arrow.lhs; in vmatch()
1218 hmatch(infop, src->u.arrow.rhs, dst); in vmatch()
1220 itree_np2nork(src->u.arrow.nnp), in vmatch()
1221 itree_np2nork(src->u.arrow.knp)); in vmatch()
1222 dst = src->u.arrow.rhs; in vmatch()
1223 src = src->u.arrow.lhs; in vmatch()
1242 for (np1 = oldepname, np2 = np->u.event.epname; in vmatch()
1243 np1 != NULL && np2 != NULL; np1 = np1->u.name.next, in vmatch()
1244 np2 = np2->u.name.next) { in vmatch()
1245 if (strcmp(np1->u.name.s, np2->u.name.s) != 0) in vmatch()
1247 if (np1->u.name.child->t != in vmatch()
1248 np2->u.name.child->t) in vmatch()
1250 if (np1->u.name.child->t == T_NUM && in vmatch()
1251 np1->u.name.child->u.ull != in vmatch()
1252 np2->u.name.child->u.ull) in vmatch()
1254 if (np1->u.name.child->t == T_NAME && in vmatch()
1255 strcmp(np1->u.name.child->u.name.s, in vmatch()
1256 np2->u.name.child->u.name.s) != 0) in vmatch()
1267 oldepname = np->u.event.epname; in vmatch()
1268 np->u.event.epname = oldnptop->u.event.epname; in vmatch()
1269 np->u.event.oldepname = wcp->oldepname; in vmatch()
1270 np->u.event.ewname = wcp->ewname; in vmatch()
1272 np->u.event.epname = oldepname; in vmatch()
1283 for (np1 = oldepname, np2 = np->u.event.epname; in vmatch()
1285 cp = np1->u.name.cp; in vmatch()
1286 np2->u.name.cp = cp; in vmatch()
1287 np1 = np1->u.name.next; in vmatch()
1288 np2 = np2->u.name.next; in vmatch()
1290 wcp->oldepname = np->u.event.epname; in vmatch()
1312 wcp->oldepname = np->u.event.epname; in vmatch()
1317 np->u.event.epname, lnp, anp, wcp); in vmatch()
1332 vmatch(infop, np->u.expr.right, np->u.expr.left, anp); in vmatch()
1337 vmatch(infop, np->u.arrow.rhs, NULL, np->u.arrow.parent); in vmatch()
1350 if (anp->u.arrow.lhs->t == T_ARROW) { in find_first_arrow()
1351 anp->u.arrow.lhs->u.arrow.parent = anp; in find_first_arrow()
1352 find_first_arrow(infop, anp->u.arrow.lhs); in find_first_arrow()
1354 vmatch(infop, anp->u.arrow.lhs, NULL, anp); in find_first_arrow()
1364 np->u.name.cp = NULL; in cp_reset()
1365 cp_reset(np->u.name.next); in cp_reset()
1369 cp_reset(np->u.expr.left); in cp_reset()
1370 cp_reset(np->u.expr.right); in cp_reset()
1374 cp_reset(np->u.arrow.lhs); in cp_reset()
1375 cp_reset(np->u.arrow.rhs); in cp_reset()
1379 cp_reset(np->u.event.epname); in cp_reset()
1402 for (propnp = Props; propnp; propnp = propnp->u.stmt.next) { in itree_create()
1403 struct node *anp = propnp->u.stmt.np; in itree_create()
1407 if (!anp->u.arrow.needed) in itree_create()
1413 anp->u.arrow.parent = NULL; in itree_create()
1452 searchevent.ipp = ipath_dummy(np->u.event.epname, (struct ipath *)ipp); in add_event_dummy()
1453 ipp_un = ipath_for_usednames(np->u.event.epname); in add_event_dummy()
1460 ret->t = np->u.event.ename->u.name.t; in add_event_dummy()
1485 for (propnp = Props; propnp; propnp = propnp->u.stmt.next) { in itree_create_dummy()
1486 arrownp = propnp->u.stmt.np; in itree_create_dummy()
1489 dlst = arrownp->u.arrow.rhs; in itree_create_dummy()
1490 slst = arrownp->u.arrow.lhs; in itree_create_dummy()
1494 slst = slst->u.arrow.rhs; in itree_create_dummy()
1500 src = slst->u.expr.right; in itree_create_dummy()
1501 slst = slst->u.expr.left; in itree_create_dummy()
1510 dst = dlst->u.expr.right; in itree_create_dummy()
1511 dlst = dlst->u.expr.left; in itree_create_dummy()
1528 dst->u.event.declp->u.stmt.np-> in itree_create_dummy()
1529 u.event.eexprlist); in itree_create_dummy()
1531 dst->u.event.eexprlist); in itree_create_dummy()
1572 ipath_print(flags, ep->enode->u.event.ename->u.name.s, ep->ipp); in itree_pevent_brief()
1902 arrow_add_within(ap, toev->u.event.declp->u.stmt.np->u.event.eexprlist); in itree_set_arrow_traits()
1903 arrow_add_within(ap, toev->u.event.eexprlist); in itree_set_arrow_traits()
1909 ASSERT(fromev->u.event.declp != NULL); in itree_set_arrow_traits()
1910 ASSERT(fromev->u.event.declp->u.stmt.np != NULL); in itree_set_arrow_traits()
1914 if (fromev->u.event.declp->u.stmt.np->u.event.eexprlist) in itree_set_arrow_traits()
1916 fromev->u.event.declp->u.stmt.np->u.event.eexprlist); in itree_set_arrow_traits()
1922 if (eval_potential(fromev->u.event.eexprlist, ex, events, &newc, in itree_set_arrow_traits()
1930 ASSERT(toev->u.event.declp != NULL); in itree_set_arrow_traits()
1931 ASSERT(toev->u.event.declp->u.stmt.np != NULL); in itree_set_arrow_traits()
1935 if (toev->u.event.declp->u.stmt.np->u.event.eexprlist) in itree_set_arrow_traits()
1937 toev->u.event.declp->u.stmt.np->u.event.eexprlist); in itree_set_arrow_traits()
1943 if (eval_potential(toev->u.event.eexprlist, ex, events, &newc, in itree_set_arrow_traits()
1974 arrow_add_within(ap, xpr->u.expr.left); in arrow_add_within()
1975 arrow_add_within(ap, xpr->u.expr.right); in arrow_add_within()
1978 if (xpr->u.func.s != L_within) in arrow_add_within()
1980 arglist = xpr->u.func.arglist; in arrow_add_within()
1984 ap->maxdelay = arglist->u.ull; in arrow_add_within()
1987 ASSERT(arglist->u.name.s == L_infinity); in arrow_add_within()
1992 ASSERT(arglist->u.expr.left->t == T_TIMEVAL); in arrow_add_within()
1993 ap->mindelay = arglist->u.expr.left->u.ull; in arrow_add_within()
1994 switch (arglist->u.expr.right->t) { in arrow_add_within()
1996 ap->maxdelay = arglist->u.ull; in arrow_add_within()
1999 ASSERT(arglist->u.expr.right->u.name.s == in arrow_add_within()