From 3599a86d68c664f24fce8c853f482cad0af6ed6a Mon Sep 17 00:00:00 2001 From: Teddy Date: Wed, 26 Mar 2014 20:03:50 +0800 Subject: move all const to a seperate file --- ast.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'ast.h') diff --git a/ast.h b/ast.h index a6c5c4a..9412fa7 100644 --- a/ast.h +++ b/ast.h @@ -1,31 +1,9 @@ #ifndef AST_H #define AST_H #include +#include "const.h" #include "cibic.tab.h" -#define EXP_POSTFIX 1024 -#define POSTFIX_ARR 1025 -#define POSTFIX_CALL 1026 -#define POSTFIX_DOT 1027 -#define POSTFIX_PTR 1028 -#define EXP_CAST 1029 -#define INITR_NORM 1030 -#define INITR_ARR 1031 -#define DECLR_FUNC 1032 -#define DECLR_ARR 1033 -#define STMT_EXP 1034 -#define STMT_COMP 1035 -#define STMT_IF 1036 -#define STMT_WHILE 1037 -#define STMT_FOR 1038 -#define STMT_CONT 1039 -#define STMT_BREAK 1040 -#define STMT_RET 1041 - -#define MAX_CHDN 1024 -#define MAX_DEBUG_PRINT_BUFF 1024 -#define MAX_DEBUG_PRINT_LVL 1024 - typedef struct CNode { enum { /* Top Level */ -- cgit v1.2.3