From c43a07086bdeefe029c5b6da4ec1c8020126d5ca Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 18 Apr 2016 14:03:06 -0400 Subject: factor some subtyping logic in clsmerge() --- all.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'all.h') 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 *); -- cgit 1.4.1