From 5732ffaa722bda7c5957324e79e61ad8f3811e2f Mon Sep 17 00:00:00 2001 From: pacien Date: Tue, 8 May 2018 21:05:16 +0200 Subject: Replace type macro with enum --- src/symbol_table.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/symbol_table.h') diff --git a/src/symbol_table.h b/src/symbol_table.h index 9926fec..fe0e35c 100644 --- a/src/symbol_table.h +++ b/src/symbol_table.h @@ -11,10 +11,13 @@ #include #define MAXNAME 32 -#define INT 0 -#define CHAR 1 #define MAXSYMBOLS 256 +typedef enum type { + INT, + CHAR +} Type; + typedef struct { char name[MAXNAME]; int type; -- cgit v1.2.3