summaryrefslogtreecommitdiffstats
path: root/filter/filter.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-11-18 15:01:36 +0100
committerPavel Machek <pavel@ucw.cz>1999-11-18 15:01:36 +0100
commitc7b43f33ae8d583ead531d76ed81f1b5deb507f3 (patch)
treeb8ec969609b791cd677800482908a3f9c2c1059f /filter/filter.h
parentda40b6f753f4dd48dbcaebbe6174decb28705ab8 (diff)
downloadbird-c7b43f33ae8d583ead531d76ed81f1b5deb507f3.tar
bird-c7b43f33ae8d583ead531d76ed81f1b5deb507f3.zip
Split inst->code into inst->code and inst->aux. Both are only 16 bit,
so aux is suitable for storing type but not much more.
Diffstat (limited to 'filter/filter.h')
-rw-r--r--filter/filter.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/filter/filter.h b/filter/filter.h
index 189b226..a62cb24 100644
--- a/filter/filter.h
+++ b/filter/filter.h
@@ -14,7 +14,8 @@
struct f_inst { /* Instruction */
struct f_inst *next; /* Structure is 16 bytes, anyway */
- int code;
+ u16 code;
+ u16 aux;
union {
int i;
void *p;
@@ -85,8 +86,9 @@ void val_print(struct f_val v);
#define T_MASK 0xff
/* Internal types */
-#define T_VOID 0
-#define T_RETURN 1
+/* Do not use type of zero, that way we'll see errors easier. */
+#define T_VOID 1
+#define T_RETURN 2
/* User visible types, which fit in int */
#define T_INT 0x10