From d1f65097c48afe6d869949cc5ede76a8b14401a9 Mon Sep 17 00:00:00 2001 From: Ginger Bill Date: Tue, 14 Feb 2017 15:19:29 +0000 Subject: Fix immutable rules; add some general documentation immutable is still a little weird and not completely what you'd expect. Maybe just not having it is better. --- src/entity.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/entity.c') diff --git a/src/entity.c b/src/entity.c index 04ef323a1..99acef870 100644 --- a/src/entity.c +++ b/src/entity.c @@ -40,12 +40,15 @@ typedef enum EntityFlag { EntityFlag_TypeField = 1<<8, } EntityFlag; +// Zero value means the overloading process is not yet done typedef enum OverloadKind { - Overload_No = -1, - Overload_Unknown = 0, - Overload_Yes = +1, + Overload_Unknown, + Overload_No, + Overload_Yes, } OverloadKind; + +// An Entity is a named "thing" in the language typedef struct Entity Entity; struct Entity { EntityKind kind; -- cgit v1.2.3