diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-08-01 15:46:09 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-15 23:01:29 -0400 |
commit | 0d5fb419e3eda0832ee549d7958e19bb9afaa15a (patch) | |
tree | e1e9d5db0afda044050ad939f0ad8d1eea3c4232 /lisc/lisc.h | |
parent | a2a2231027d2e60777b92a52701ac33c56dd362f (diff) | |
download | roux-0d5fb419e3eda0832ee549d7958e19bb9afaa15a.tar.gz |
avoid keyword clash by using cons for constants
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r-- | lisc/lisc.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h index 2f00e09..4d70f31 100644 --- a/lisc/lisc.h +++ b/lisc/lisc.h @@ -13,7 +13,7 @@ typedef struct Ins Ins; typedef struct Phi Phi; typedef struct Blk Blk; typedef struct Sym Sym; -typedef struct Const Const; +typedef struct Cons Cons; typedef struct Fn Fn; typedef enum { U, F, T } B3; @@ -66,14 +66,14 @@ struct Ref { enum { RSym, - RConst, + RCons, RSlot, NRef = (1<<14) - 1 }; #define R (Ref){0, 0} #define SYM(x) (Ref){RSym, x} -#define CONST(x) (Ref){RConst, x} +#define CONS(x) (Ref){RCons, x} #define SLOT(x) (Ref){RSlot, x} static inline int req(Ref a, Ref b) @@ -161,7 +161,7 @@ struct Sym { int hint; }; -struct Const { +struct Cons { enum { CUndef, CNum, @@ -174,7 +174,7 @@ struct Const { struct Fn { Blk *start; Sym *sym; - Const *cst; + Cons *cons; int ntmp; int nblk; Blk **rpo; |