summaryrefslogtreecommitdiff
path: root/parse/parse.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2018-01-20 13:07:34 -0500
committerOri Bernstein <ori@eigenstate.org>2018-01-21 14:29:38 -0800
commit720cc29f19477550800adf5539837fec15296bbc (patch)
tree34efa93381a753b3b0c06090b84116f7cc9e7967 /parse/parse.h
parentd8b909066008d478a8abd30cb329c88d44194730 (diff)
downloadmc-720cc29f19477550800adf5539837fec15296bbc.tar.gz
Cheap enums.
Diffstat (limited to 'parse/parse.h')
-rw-r--r--parse/parse.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/parse/parse.h b/parse/parse.h
index 1bf0029..c7b94aa 100644
--- a/parse/parse.h
+++ b/parse/parse.h
@@ -1,4 +1,4 @@
-#define Abiversion 16
+#define Abiversion 17
typedef struct Srcloc Srcloc;
typedef struct Tysubst Tysubst;
@@ -158,6 +158,7 @@ struct Type {
};
char hasparams; /* cache for whether this type has params */
+ char isenum; /* Tyunion: see isenum(), it is lazily set there */
char ishidden; /* Tyname: whether this is hidden or not */
char ispkglocal; /* Tyname: whether this is package local or not */
char isimport; /* Tyname: whether tyis type was imported. */
@@ -470,6 +471,7 @@ Trait *mktrait(Srcloc l, Node *name,
int isproto);
Ucon *finducon(Type *t, Node *name);
int isstacktype(Type *t);
+int isenum(Type *t);
int istysigned(Type *t);
int istyunsigned(Type *t);
int istyfloat(Type *t);