summaryrefslogtreecommitdiffstats
path: root/conf/conf.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-11-27 22:32:45 +0100
committerMartin Mares <mj@ucw.cz>1998-11-27 22:32:45 +0100
commit0b62c3a7c7548cd447b4f18e0346cc9e74862ab3 (patch)
treeb74b1a9ffa4f59b7d86765eac906c67827e83a12 /conf/conf.h
parentc74c0e3cdf008988a8873d3f76c0d71b29ab8673 (diff)
downloadbird-0b62c3a7c7548cd447b4f18e0346cc9e74862ab3.tar
bird-0b62c3a7c7548cd447b4f18e0346cc9e74862ab3.zip
Trivial 15-line bison excercise: Implemented expressions including
user-defined numeric symbols. Whenever possible, use `expr' instead of `NUM' to get full express ion power :-)
Diffstat (limited to 'conf/conf.h')
-rw-r--r--conf/conf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/conf/conf.h b/conf/conf.h
index 0853ae8..6a0a328 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -21,12 +21,14 @@ extern int (*cf_read_hook)(byte *buf, unsigned int max);
struct symbol {
struct symbol *next;
int class;
+ int aux;
void *def;
char name[1];
};
#define SYM_VOID 0
#define SYM_PROTO 1
+#define SYM_NUMBER 2
void cf_lex_init_tables(void);
int cf_lex(void);