aboutsummaryrefslogtreecommitdiff
path: root/semantics.h
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-29 23:42:01 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-29 23:42:01 +0800
commit042d8cf2f62b92abc8b14ab88a09c875a265d585 (patch)
tree4a0c4487a39a6350d615542b449345b1c05b043a /semantics.h
parentc5686107b96e8d796029c9cf4536021066b4001e (diff)
renaming now works
Diffstat (limited to 'semantics.h')
-rw-r--r--semantics.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/semantics.h b/semantics.h
index a6c4df7..65d1b7e 100644
--- a/semantics.h
+++ b/semantics.h
@@ -14,6 +14,7 @@ typedef struct CDef CDef;
typedef CDef *CDef_t;
typedef struct CBList *CBList_t;
+typedef struct COList *COList_t;
struct CVar {
char *name;
CVar_t next; /* next in the linked list */
@@ -21,6 +22,9 @@ struct CVar {
int start;
CNode *ast;
CBList_t defsite;
+ /* the following fields are used for renaming */
+ int cnt;
+ COList_t stack;
};
CVar_t cvar_create(char *name, CType_t type, CNode *ast);