Lines Matching refs:node

50 static struct node *Root;
87 Nodecount = stats_new_counter("parser.node", "nodes created", 1);
90 stats_new_counter("parser.nodesize", "sizeof(struct node)", 1);
91 stats_counter_add(Nodesize, sizeof (struct node));
156 nodesize(enum nodetype t, struct node *ret)
158 int size = sizeof (struct node);
212 struct node *
215 struct node *ret = NULL;
230 tree_free(struct node *root)
320 tree_treecmp(struct node *np1, struct node *np2, enum nodetype t,
447 struct node *
448 tree_root(struct node *np)
455 struct node *
461 struct node *
462 tree_expr(enum nodetype t, struct node *left, struct node *right)
464 struct node *ret;
486 * 1. the ename uses only a single struct node
494 static struct node *
495 ename_compress(struct node *ename)
500 struct node *np;
531 struct node *
532 tree_event(struct node *ename, struct node *epname, struct node *eexprlist)
534 struct node *ret;
549 struct node *
552 struct node *ret = newnode(T_NAME, file, line);
584 struct node *
587 struct node *ret;
618 struct node *
621 struct node *ret = newnode(T_GLOBID, file, line);
630 struct node *
631 tree_name_append(struct node *np1, struct node *np2)
659 struct node *
660 tree_name_repairdash(struct node *np, const char *s)
682 struct node *
683 tree_name_repairdash2(const char *s, struct node *np)
705 struct node *
706 tree_name_iterator(struct node *np1, struct node *np2)
719 struct node *
722 struct node *ret = newnode(T_TIMEVAL, file, line);
731 /* still construct a valid timeval node so parsing continues */
740 struct node *
743 struct node *ret = newnode(T_NUM, file, line);
749 struct node *
752 struct node *ret = newnode(T_QUOTE, file, line);
758 struct node *
759 tree_func(const char *s, struct node *np, const char *file, int line)
761 struct node *ret = newnode(T_FUNC, file, line);
802 make_explicit(struct node *np, int eventonly)
804 struct node *pnp; /* component of pathname */
805 struct node *pnp2;
909 struct node *
910 tree_pname(struct node *np)
916 struct node *
917 tree_arrow(struct node *lhs, struct node *nnp, struct node *knp,
918 struct node *rhs)
920 struct node *ret;
942 nvpair2lut(struct node *np, struct lut *lutp, enum nodetype t)
964 tree_s2np_lut_add(struct lut *root, const char *s, struct node *np)
969 struct node *
972 return (struct node *)lut_lookup(root, (void *)s, NULL);
976 tree_name2np_lut_add(struct lut *root, struct node *namep, struct node *np)
982 struct node *
983 tree_name2np_lut_lookup(struct lut *root, struct node *namep)
985 return (struct node *)
989 struct node *
990 tree_name2np_lut_lookup_name(struct lut *root, struct node *namep)
992 return (struct node *)
997 tree_event2np_lut_add(struct lut *root, struct node *enp, struct node *np)
1002 struct node *
1003 tree_event2np_lut_lookup(struct lut *root, struct node *enp)
1005 return ((struct node *)
1009 struct node *
1010 tree_event2np_lut_lookup_event(struct lut *root, struct node *enp)
1012 return ((struct node *)
1016 static struct node *
1018 struct node *np, struct node *nvpairs, struct lut **lutpp,
1021 struct node *ret;
1022 struct node *decl;
1024 /* allocate parse tree node */
1062 struct node *serd;
1066 serd = tree_s2np_lut_lookup(((struct node *)rhs)->u.stmt.lutp,
1072 if (arg != NULL && tree_eventcmp(serd, (struct node *)arg) != 0)
1080 struct node *
1081 tree_decl(enum nodetype t, struct node *np, struct node *nvpairs,
1084 struct node *decl;
1085 struct node *ret;
1143 * configuration node when an ereport of of a given
1223 set_arrow_prop(struct node *prop, struct node *np)
1240 struct node *
1241 tree_stmt(enum nodetype t, struct node *np, const char *file, int line)
1243 struct node *ret = newnode(t, file, line);
1244 struct node *pp;
1343 tree_namecmp(struct node *np1, struct node *np2)
1366 tree_eventcmp(struct node *np1, struct node *np2)