2 * $XConsortium: def.h,v 1.6 88/09/22 13:52:33 jim Exp $
14 #define MAXDEFINES 512
17 #define SYMTABINC 10 /* must be > 1 for define() to work right */
21 /* the following must match the directives table in main.c */
34 #define IFFALSE 12 /* pseudo value --- never matched */
35 #define ELIFFALSE 13 /* pseudo value --- never matched */
36 #define INCLUDEDOT 14 /* pseudo value --- never matched */
40 #define debug0 ((debug&0x0001)==0) ? debug : log /* show ifn*(def)*,endif */
41 #define debug1 ((debug&0x0002)==0) ? debug : log /* trace defined/!defined */
42 #define debug2 ((debug&0x0004)==0) ? debug : log /* show #include */
43 #define debug3 ((debug&0x0008)==0) ? debug : log /* show #include SYMBOL */
44 #define debug4 ((debug&0x0010)==0) ? debug : log /* unused */
45 #define debug5 ((debug&0x0020)==0) ? debug : log /* unused */
46 #define debug6 ((debug&0x0040)==0) ? debug : log /* unused */
57 typedef u_char boolean;
65 char *i_incstring; /* string from #include line */
66 char *i_file; /* path name of the include file */
67 struct inclist **i_list; /* list of files it itself includes */
68 int i_listlen; /* length of i_list */
69 struct symtab *i_defs; /* symbol table for this file */
70 struct symtab *i_lastdef; /* last symbol defined */
71 int i_deflen; /* number of defines */
72 boolean i_defchecked; /* whether defines have been checked */
73 boolean i_notified; /* whether we have revealed includes */
74 boolean i_marked; /* whether it's in the makefile */
75 boolean i_searched; /* whether we have read this */
76 boolean i_included_sym; /* whether #include SYMBOL was found */
77 /* Can't use i_list if TRUE */
93 struct symtab *slookup();
94 struct symtab *defined();
95 struct symtab *fdefined();
96 struct filepointer *getfile();
97 struct inclist *newinclude();
98 struct inclist *inc_path();