From c7b43f33ae8d583ead531d76ed81f1b5deb507f3 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Thu, 18 Nov 1999 14:01:36 +0000 Subject: 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. --- filter/filter.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'filter/filter.h') 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 -- cgit v1.2.3