17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 58a40a695Sgavinm * Common Development and Distribution License (the "License"). 68a40a695Sgavinm * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 22602ca9eaScth * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate * Use is subject to license terms. 247c478bd9Sstevel@tonic-gate * 257c478bd9Sstevel@tonic-gate * tree.h -- public definitions for tree module 267c478bd9Sstevel@tonic-gate * 277c478bd9Sstevel@tonic-gate * the parse tree is made up of struct node's. the struct is 287c478bd9Sstevel@tonic-gate * a "variant record" with a type, the filename and line number 297c478bd9Sstevel@tonic-gate * related to the node, and then type-specific node data. 307c478bd9Sstevel@tonic-gate */ 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate #ifndef _ESC_COMMON_TREE_H 337c478bd9Sstevel@tonic-gate #define _ESC_COMMON_TREE_H 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate #ifdef __cplusplus 367c478bd9Sstevel@tonic-gate extern "C" { 377c478bd9Sstevel@tonic-gate #endif 387c478bd9Sstevel@tonic-gate 397c478bd9Sstevel@tonic-gate struct node { 407c478bd9Sstevel@tonic-gate enum nodetype { 41b5016cbbSstephh T_NOTHING, /* used to keep going on error cases */ 427c478bd9Sstevel@tonic-gate T_NAME, /* identifiers, sometimes chained */ 437c478bd9Sstevel@tonic-gate T_GLOBID, /* globals (e.g. $a) */ 447c478bd9Sstevel@tonic-gate T_EVENT, /* class@path{expr} */ 457c478bd9Sstevel@tonic-gate T_ENGINE, /* upset threshold engine (e.g. SERD) */ 467c478bd9Sstevel@tonic-gate T_ASRU, /* ASRU declaration */ 477c478bd9Sstevel@tonic-gate T_FRU, /* FRU declaration */ 487c478bd9Sstevel@tonic-gate T_TIMEVAL, /* num w/time suffix (ns internally) */ 497c478bd9Sstevel@tonic-gate T_NUM, /* num (ull internally) */ 507c478bd9Sstevel@tonic-gate T_QUOTE, /* quoted string */ 517c478bd9Sstevel@tonic-gate T_FUNC, /* func(arglist) */ 527c478bd9Sstevel@tonic-gate T_NVPAIR, /* name=value pair in decl */ 537c478bd9Sstevel@tonic-gate T_ASSIGN, /* assignment statement */ 547c478bd9Sstevel@tonic-gate T_CONDIF, /* a and T_CONDELSE in (a ? b : c ) */ 557c478bd9Sstevel@tonic-gate T_CONDELSE, /* lists b and c in (a ? b : c ) */ 567c478bd9Sstevel@tonic-gate T_NOT, /* boolean ! operator */ 577c478bd9Sstevel@tonic-gate T_AND, /* boolean && operator */ 587c478bd9Sstevel@tonic-gate T_OR, /* boolean || operator */ 597c478bd9Sstevel@tonic-gate T_EQ, /* boolean == operator */ 607c478bd9Sstevel@tonic-gate T_NE, /* boolean != operator */ 617c478bd9Sstevel@tonic-gate T_SUB, /* integer - operator */ 627c478bd9Sstevel@tonic-gate T_ADD, /* integer + operator */ 637c478bd9Sstevel@tonic-gate T_MUL, /* integer * operator */ 647c478bd9Sstevel@tonic-gate T_DIV, /* integer / operator */ 657c478bd9Sstevel@tonic-gate T_MOD, /* integer % operator */ 667c478bd9Sstevel@tonic-gate T_LT, /* boolean < operator */ 677c478bd9Sstevel@tonic-gate T_LE, /* boolean <= operator */ 687c478bd9Sstevel@tonic-gate T_GT, /* boolean > operator */ 697c478bd9Sstevel@tonic-gate T_GE, /* boolean >= operator */ 707c478bd9Sstevel@tonic-gate T_BITAND, /* bitwise & operator */ 717c478bd9Sstevel@tonic-gate T_BITOR, /* bitwise | operator */ 727c478bd9Sstevel@tonic-gate T_BITXOR, /* bitwise ^ operator */ 737c478bd9Sstevel@tonic-gate T_BITNOT, /* bitwise ~ operator */ 747c478bd9Sstevel@tonic-gate T_LSHIFT, /* bitwise << operator */ 757c478bd9Sstevel@tonic-gate T_RSHIFT, /* bitwise >> operator */ 767c478bd9Sstevel@tonic-gate T_ARROW, /* lhs (N)->(K) rhs */ 777c478bd9Sstevel@tonic-gate T_LIST, /* comma-separated list */ 787c478bd9Sstevel@tonic-gate T_FAULT, /* fault declaration */ 797c478bd9Sstevel@tonic-gate T_UPSET, /* upset declaration */ 807c478bd9Sstevel@tonic-gate T_DEFECT, /* defect declaration */ 817c478bd9Sstevel@tonic-gate T_ERROR, /* error declaration */ 827c478bd9Sstevel@tonic-gate T_EREPORT, /* ereport declaration */ 837c478bd9Sstevel@tonic-gate T_SERD, /* SERD engine declaration */ 847aec1d6eScindi T_STAT, /* STAT engine declaration */ 857c478bd9Sstevel@tonic-gate T_PROP, /* prop statement */ 867c478bd9Sstevel@tonic-gate T_MASK, /* mask statement */ 877c478bd9Sstevel@tonic-gate T_CONFIG /* config statement */ 88b5016cbbSstephh } t:8; 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate /* 917c478bd9Sstevel@tonic-gate * regardless of the type of node, filename and line number 927c478bd9Sstevel@tonic-gate * information from the original .esc file is tracked here. 937c478bd9Sstevel@tonic-gate */ 94b5016cbbSstephh int line:24; 957c478bd9Sstevel@tonic-gate const char *file; 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate /* 987c478bd9Sstevel@tonic-gate * the variant part of a struct node... 997c478bd9Sstevel@tonic-gate */ 1007c478bd9Sstevel@tonic-gate union { 1017c478bd9Sstevel@tonic-gate struct { 1027c478bd9Sstevel@tonic-gate /* 1037c478bd9Sstevel@tonic-gate * info kept for T_NAME, used in several ways: 1047c478bd9Sstevel@tonic-gate * 1057c478bd9Sstevel@tonic-gate * 1 for simple variable names. 1067c478bd9Sstevel@tonic-gate * example: j 1077c478bd9Sstevel@tonic-gate * 1087c478bd9Sstevel@tonic-gate * 2 for event class names, with component 1097c478bd9Sstevel@tonic-gate * names chained together via the "next" 1107c478bd9Sstevel@tonic-gate * pointers. 1117c478bd9Sstevel@tonic-gate * example: fault.fan.broken 1127c478bd9Sstevel@tonic-gate * 1137c478bd9Sstevel@tonic-gate * 3 for component pathnames, with component 1147c478bd9Sstevel@tonic-gate * names chained together via the "next" 1157c478bd9Sstevel@tonic-gate * pointers and iterators or instance numbers 1167c478bd9Sstevel@tonic-gate * attached via the "child" pointers. 1177c478bd9Sstevel@tonic-gate * example: sysboard[0]/cpu[n] 1187c478bd9Sstevel@tonic-gate * 1197c478bd9Sstevel@tonic-gate * case 3 is the most interesting. 1207c478bd9Sstevel@tonic-gate * - if child is set, there's an iterator 1217c478bd9Sstevel@tonic-gate * - if child is a T_NAME, it is x[j] or x<j> and 1227c478bd9Sstevel@tonic-gate * iterator type tells you vertical or horizontal 1237c478bd9Sstevel@tonic-gate * - if child is a T_NUM, it is x[0] or x<0> or 1247c478bd9Sstevel@tonic-gate * x0 and iterator type tells you which one 1257c478bd9Sstevel@tonic-gate * - if cp pointer is set, then we recently 1267c478bd9Sstevel@tonic-gate * matched it to a config cache entry and one 1277c478bd9Sstevel@tonic-gate * can ignore child for now because it still 1287c478bd9Sstevel@tonic-gate * represents the *pattern* you're matching. 1297c478bd9Sstevel@tonic-gate * cp represents what you matched. ptree() 1307c478bd9Sstevel@tonic-gate * knows that if cp is set, to print that number 1317c478bd9Sstevel@tonic-gate * instead of following child. 1327c478bd9Sstevel@tonic-gate * 1337c478bd9Sstevel@tonic-gate * when T_NAME nodes are chained: 1347c478bd9Sstevel@tonic-gate * the "last" pointer takes you to the end of the 1357c478bd9Sstevel@tonic-gate * chain, but only the first component's last pointer 1367c478bd9Sstevel@tonic-gate * is kept up to date. it is used to determine 1377c478bd9Sstevel@tonic-gate * where to append newly-created T_NAME nodes (see 1387c478bd9Sstevel@tonic-gate * tree_name_append()). 1397c478bd9Sstevel@tonic-gate */ 1407c478bd9Sstevel@tonic-gate const char *s; /* the name itself */ 1417c478bd9Sstevel@tonic-gate 1427c478bd9Sstevel@tonic-gate struct node *child; 1437c478bd9Sstevel@tonic-gate struct node *next; 1447c478bd9Sstevel@tonic-gate struct node *last; 1457c478bd9Sstevel@tonic-gate 1467c478bd9Sstevel@tonic-gate /* opaque pointer used during config matching */ 1477c478bd9Sstevel@tonic-gate struct config *cp; 1487c478bd9Sstevel@tonic-gate 149b5016cbbSstephh /* 150b5016cbbSstephh * note nametype is also declared as a three bit enum 151b5016cbbSstephh * in itree.h, so if this ever needs expanding that 152b5016cbbSstephh * will need changing too. 153b5016cbbSstephh */ 1547c478bd9Sstevel@tonic-gate enum nametype { 1557c478bd9Sstevel@tonic-gate N_UNSPEC, 1567c478bd9Sstevel@tonic-gate N_FAULT, 1577c478bd9Sstevel@tonic-gate N_UPSET, 1587c478bd9Sstevel@tonic-gate N_DEFECT, 1597c478bd9Sstevel@tonic-gate N_ERROR, 1607c478bd9Sstevel@tonic-gate N_EREPORT, 1617aec1d6eScindi N_SERD, 1627aec1d6eScindi N_STAT 1637c478bd9Sstevel@tonic-gate } t:3; 1647c478bd9Sstevel@tonic-gate enum itertype { 1657c478bd9Sstevel@tonic-gate IT_NONE, 1667c478bd9Sstevel@tonic-gate IT_VERTICAL, 1677c478bd9Sstevel@tonic-gate IT_HORIZONTAL, 1687c478bd9Sstevel@tonic-gate IT_ENAME 1697c478bd9Sstevel@tonic-gate } it:2; 1707c478bd9Sstevel@tonic-gate unsigned childgen:1; /* child was auto-generated */ 1717c478bd9Sstevel@tonic-gate } name; 1727c478bd9Sstevel@tonic-gate 1737c478bd9Sstevel@tonic-gate struct { 1747c478bd9Sstevel@tonic-gate /* 1757c478bd9Sstevel@tonic-gate * info kept for T_GLOBID 1767c478bd9Sstevel@tonic-gate */ 1777c478bd9Sstevel@tonic-gate const char *s; /* the name itself */ 1787c478bd9Sstevel@tonic-gate } globid; 1797c478bd9Sstevel@tonic-gate 1807c478bd9Sstevel@tonic-gate /* 1817c478bd9Sstevel@tonic-gate * info kept for T_TIMEVAL and T_NUM 1827c478bd9Sstevel@tonic-gate * 1837c478bd9Sstevel@tonic-gate * timevals are kept in nanoseconds. 1847c478bd9Sstevel@tonic-gate */ 1857c478bd9Sstevel@tonic-gate unsigned long long ull; 1867c478bd9Sstevel@tonic-gate 1877c478bd9Sstevel@tonic-gate struct { 1887c478bd9Sstevel@tonic-gate /* 1897c478bd9Sstevel@tonic-gate * info kept for T_QUOTE 1907c478bd9Sstevel@tonic-gate */ 1917c478bd9Sstevel@tonic-gate const char *s; /* the quoted string */ 1927c478bd9Sstevel@tonic-gate } quote; 1937c478bd9Sstevel@tonic-gate 1947c478bd9Sstevel@tonic-gate struct { 1957c478bd9Sstevel@tonic-gate /* 1967c478bd9Sstevel@tonic-gate * info kept for T_FUNC 1977c478bd9Sstevel@tonic-gate */ 1987c478bd9Sstevel@tonic-gate const char *s; /* name of function */ 1997c478bd9Sstevel@tonic-gate struct node *arglist; 2007c478bd9Sstevel@tonic-gate } func; 2017c478bd9Sstevel@tonic-gate 2027c478bd9Sstevel@tonic-gate struct { 2037c478bd9Sstevel@tonic-gate /* 2047c478bd9Sstevel@tonic-gate * info kept for T_PROP and T_MASK statements 2057c478bd9Sstevel@tonic-gate * as well as declarations for: 2067c478bd9Sstevel@tonic-gate * T_FAULT 2077c478bd9Sstevel@tonic-gate * T_UPSET 2087c478bd9Sstevel@tonic-gate * T_DEFECT 2097c478bd9Sstevel@tonic-gate * T_ERROR 2107c478bd9Sstevel@tonic-gate * T_EREPORT 2117c478bd9Sstevel@tonic-gate * T_ASRU 2127c478bd9Sstevel@tonic-gate * T_FRU 2137c478bd9Sstevel@tonic-gate * T_CONFIG 2147c478bd9Sstevel@tonic-gate */ 2157c478bd9Sstevel@tonic-gate struct node *np; 2167c478bd9Sstevel@tonic-gate struct node *nvpairs; /* for declarations */ 2177c478bd9Sstevel@tonic-gate struct lut *lutp; /* for declarations */ 2187c478bd9Sstevel@tonic-gate struct node *next; /* for Props & Masks lists */ 2197c478bd9Sstevel@tonic-gate struct node *expr; /* for if statements */ 2207c478bd9Sstevel@tonic-gate unsigned char flags; /* see STMT_ flags below */ 2217c478bd9Sstevel@tonic-gate } stmt; /* used for stmt */ 2227c478bd9Sstevel@tonic-gate 2237c478bd9Sstevel@tonic-gate struct { 2247c478bd9Sstevel@tonic-gate /* 2257c478bd9Sstevel@tonic-gate * info kept for T_EVENT 2267c478bd9Sstevel@tonic-gate */ 2277c478bd9Sstevel@tonic-gate struct node *ename; /* event class name */ 2287c478bd9Sstevel@tonic-gate struct node *epname; /* component path name */ 229b5016cbbSstephh struct node *oldepname; /* unwildcarded path name */ 230b5016cbbSstephh struct node *ewname; /* wildcarded portion */ 2317c478bd9Sstevel@tonic-gate struct node *eexprlist; /* constraint expression */ 2327c478bd9Sstevel@tonic-gate struct node *declp; /* event declaration */ 2337c478bd9Sstevel@tonic-gate } event; 2347c478bd9Sstevel@tonic-gate 2357c478bd9Sstevel@tonic-gate struct { 2367c478bd9Sstevel@tonic-gate /* 2377c478bd9Sstevel@tonic-gate * info kept for T_ARROW 2387c478bd9Sstevel@tonic-gate */ 2397c478bd9Sstevel@tonic-gate struct node *lhs; /* left side of arrow */ 2407c478bd9Sstevel@tonic-gate struct node *rhs; /* right side of arrow */ 2417c478bd9Sstevel@tonic-gate struct node *nnp; /* N value */ 2427c478bd9Sstevel@tonic-gate struct node *knp; /* K value */ 2437c478bd9Sstevel@tonic-gate struct node *prop; /* arrow is part of this prop */ 244b5016cbbSstephh int needed; 245b7d3956bSstephh struct node *parent; 2467c478bd9Sstevel@tonic-gate } arrow; 2477c478bd9Sstevel@tonic-gate 2487c478bd9Sstevel@tonic-gate struct { 2497c478bd9Sstevel@tonic-gate /* 2507c478bd9Sstevel@tonic-gate * info kept for everything else (T_ADD, T_LIST, etc.) 2517c478bd9Sstevel@tonic-gate */ 2527c478bd9Sstevel@tonic-gate struct node *left; 2537c478bd9Sstevel@tonic-gate struct node *right; 254b5016cbbSstephh int temp; 2557c478bd9Sstevel@tonic-gate } expr; 2567c478bd9Sstevel@tonic-gate } u; 257b5016cbbSstephh /* 258b5016cbbSstephh * Note to save memory the nodesize() function trims the end of this 259b5016cbbSstephh * structure, so best not to add anything after this point 260b5016cbbSstephh */ 2617c478bd9Sstevel@tonic-gate }; 2627c478bd9Sstevel@tonic-gate 2637c478bd9Sstevel@tonic-gate /* flags we keep with stmts */ 2647c478bd9Sstevel@tonic-gate #define STMT_REF 0x01 /* declared item is referenced */ 2657c478bd9Sstevel@tonic-gate #define STMT_CYMARK 0x02 /* declared item is marked for cycle check */ 2667c478bd9Sstevel@tonic-gate #define STMT_CYCLE 0x04 /* cycle detected and already reported */ 2677c478bd9Sstevel@tonic-gate 2687c478bd9Sstevel@tonic-gate #define TIMEVAL_EVENTUALLY (1000000000ULL*60*60*24*365*100) /* 100 years */ 2697c478bd9Sstevel@tonic-gate 2707c478bd9Sstevel@tonic-gate void tree_init(void); 2717c478bd9Sstevel@tonic-gate void tree_fini(void); 2727c478bd9Sstevel@tonic-gate struct node *newnode(enum nodetype t, const char *file, int line); 2737c478bd9Sstevel@tonic-gate void tree_free(struct node *root); 2747c478bd9Sstevel@tonic-gate struct node *tree_root(struct node *np); 2757c478bd9Sstevel@tonic-gate struct node *tree_nothing(void); 2767c478bd9Sstevel@tonic-gate struct node *tree_expr(enum nodetype t, struct node *left, struct node *right); 2777c478bd9Sstevel@tonic-gate struct node *tree_event(struct node *ename, struct node *epname, 2787c478bd9Sstevel@tonic-gate struct node *eexprlist); 2797c478bd9Sstevel@tonic-gate struct node *tree_if(struct node *expr, struct node *stmts, 2807c478bd9Sstevel@tonic-gate const char *file, int line); 2817c478bd9Sstevel@tonic-gate struct node *tree_name(const char *s, enum itertype it, 2827c478bd9Sstevel@tonic-gate const char *file, int line); 2837c478bd9Sstevel@tonic-gate struct node *tree_iname(const char *s, const char *file, int line); 2847c478bd9Sstevel@tonic-gate struct node *tree_globid(const char *s, const char *file, int line); 2857c478bd9Sstevel@tonic-gate struct node *tree_name_append(struct node *np1, struct node *np2); 2867c478bd9Sstevel@tonic-gate struct node *tree_name_repairdash(struct node *np1, const char *s); 2878a40a695Sgavinm struct node *tree_name_repairdash2(const char *s, struct node *np1); 2887c478bd9Sstevel@tonic-gate struct node *tree_name_iterator(struct node *np1, struct node *np2); 2897c478bd9Sstevel@tonic-gate struct node *tree_timeval(const char *s, const char *suffix, 2907c478bd9Sstevel@tonic-gate const char *file, int line); 2917c478bd9Sstevel@tonic-gate struct node *tree_num(const char *s, const char *file, int line); 2927c478bd9Sstevel@tonic-gate struct node *tree_quote(const char *s, const char *file, int line); 2937c478bd9Sstevel@tonic-gate struct node *tree_func(const char *s, struct node *np, 2947c478bd9Sstevel@tonic-gate const char *file, int line); 2957c478bd9Sstevel@tonic-gate struct node *tree_pname(struct node *np); 2967c478bd9Sstevel@tonic-gate struct node *tree_arrow(struct node *lhs, struct node *nnp, struct node *knp, 2977c478bd9Sstevel@tonic-gate struct node *rhs); 2987c478bd9Sstevel@tonic-gate struct lut *tree_s2np_lut_add(struct lut *root, const char *s, struct node *np); 2997c478bd9Sstevel@tonic-gate struct node *tree_s2np_lut_lookup(struct lut *root, const char *s); 3007c478bd9Sstevel@tonic-gate struct lut *tree_name2np_lut_add(struct lut *root, 3017c478bd9Sstevel@tonic-gate struct node *namep, struct node *np); 3027c478bd9Sstevel@tonic-gate struct node *tree_name2np_lut_lookup(struct lut *root, struct node *namep); 3037c478bd9Sstevel@tonic-gate struct node *tree_name2np_lut_lookup_name(struct lut *root, struct node *namep); 3047c478bd9Sstevel@tonic-gate struct lut *tree_event2np_lut_add(struct lut *root, 3057c478bd9Sstevel@tonic-gate struct node *enp, struct node *np); 3067c478bd9Sstevel@tonic-gate struct node *tree_event2np_lut_lookup(struct lut *root, struct node *enp); 3077c478bd9Sstevel@tonic-gate struct node *tree_event2np_lut_lookup_event(struct lut *root, 3087c478bd9Sstevel@tonic-gate struct node *enp); 3097c478bd9Sstevel@tonic-gate struct node *tree_decl(enum nodetype t, struct node *enp, struct node *nvpairs, 3107c478bd9Sstevel@tonic-gate const char *file, int line); 3117c478bd9Sstevel@tonic-gate struct node *tree_stmt(enum nodetype t, struct node *np, 3127c478bd9Sstevel@tonic-gate const char *file, int line); 3137c478bd9Sstevel@tonic-gate void tree_report(); 3147c478bd9Sstevel@tonic-gate int tree_namecmp(struct node *np1, struct node *np2); 3157c478bd9Sstevel@tonic-gate int tree_eventcmp(struct node *np1, struct node *np2); 3167c478bd9Sstevel@tonic-gate 317*cfc9ef1dSToomas Soome extern struct lut *Faults; 318*cfc9ef1dSToomas Soome extern struct lut *Upsets; 319*cfc9ef1dSToomas Soome extern struct lut *Defects; 320*cfc9ef1dSToomas Soome extern struct lut *Errors; 321*cfc9ef1dSToomas Soome extern struct lut *Ereports; 322*cfc9ef1dSToomas Soome extern struct lut *Ereportenames; 323*cfc9ef1dSToomas Soome extern struct lut *Ereportenames_discard; 324*cfc9ef1dSToomas Soome extern struct lut *SERDs; 325*cfc9ef1dSToomas Soome extern struct lut *STATs; 326*cfc9ef1dSToomas Soome extern struct lut *ASRUs; 327*cfc9ef1dSToomas Soome extern struct lut *FRUs; 328*cfc9ef1dSToomas Soome extern struct lut *Configs; 329*cfc9ef1dSToomas Soome extern struct node *Props; 330*cfc9ef1dSToomas Soome extern struct node *Lastprops; 331*cfc9ef1dSToomas Soome extern struct node *Masks; 332*cfc9ef1dSToomas Soome extern struct node *Lastmasks; 333*cfc9ef1dSToomas Soome extern struct node *Problems; 334*cfc9ef1dSToomas Soome extern struct node *Lastproblems; 3357c478bd9Sstevel@tonic-gate 3367c478bd9Sstevel@tonic-gate #ifdef __cplusplus 3377c478bd9Sstevel@tonic-gate } 3387c478bd9Sstevel@tonic-gate #endif 3397c478bd9Sstevel@tonic-gate 3407c478bd9Sstevel@tonic-gate #endif /* _ESC_COMMON_TREE_H */ 341