aboutsummaryrefslogtreecommitdiff
path: root/all.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <[email protected]>2016-04-18 14:03:06 -0400
committerQuentin Carbonneaux <[email protected]>2016-04-18 14:03:06 -0400
commitc43a07086bdeefe029c5b6da4ec1c8020126d5ca (patch)
treed497b43234d5d59ca40ceb22154d24e15fdeb395 /all.h
parentc6f3adc52d375d434e3dfd2d23056f0bfdbcdc67 (diff)
factor some subtyping logic in clsmerge()
Diffstat (limited to 'all.h')
-rw-r--r--all.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/all.h b/all.h
index c729b86..19125b0 100644
--- a/all.h
+++ b/all.h
@@ -190,6 +190,7 @@ enum FCmp {
};
enum Class {
+ Kx = -1, /* "top" class (see usecheck() and clsmerge()) */
Kw,
Kl,
Ks,
@@ -488,6 +489,7 @@ void idup(Ins **, Ins *, ulong);
Ins *icpy(Ins *, Ins *, ulong);
void *vnew(ulong, size_t);
void vgrow(void *, ulong);
+int clsmerge(short *, short);
int phicls(int, Tmp *);
Ref newtmp(char *, int, Fn *);
void chuse(Ref, int, Fn *);