summaryrefslogtreecommitdiff
path: root/05/constants.b
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-01-25 18:28:26 -0500
committerpommicket <pommicket@gmail.com>2022-01-25 18:28:26 -0500
commitfb564812c2acc36647e61cc6009dddf153b2d673 (patch)
tree0670469d78a5e059d5ee9b31eae6666d8a9fdf5e /05/constants.b
parent47d801cd3448e40a1666de5e927f83d4fc4a7bae (diff)
i forgot about commas ...
Diffstat (limited to '05/constants.b')
-rw-r--r--05/constants.b4
1 files changed, 2 insertions, 2 deletions
diff --git a/05/constants.b b/05/constants.b
index 9c20fdc..06b141f 100644
--- a/05/constants.b
+++ b/05/constants.b
@@ -199,7 +199,8 @@
; char, unsigned char, etc.: TYPE_CHAR, TYPE_UNSIGNED_CHAR, etc. as a single byte
; pointer to type t: TYPE_PTR t
; array of n t's: TYPE_ARRAY {n as 8 bytes} t
-; struct/union: TYPE_STRUCT/TYPE_UNION {0 for incomplete types/4-byte pointer to struct/union}
+; struct/union: TYPE_STRUCT {8-byte pointer to struct/union data (see structures in main.b)}
+; note: incomplete structs/unions are replaced with void.
; function: TYPE_FUNCTION {arg1 type} {arg2 type} ... {argn type} 0 {return type}
; note that enum types are just treated as ints.
#define TYPE_VOID 1
@@ -216,7 +217,6 @@
#define TYPE_DOUBLE 12
#define TYPE_POINTER 13
#define TYPE_STRUCT 14
-#define TYPE_UNION 15
#define TYPE_ARRAY 16
#define TYPE_FUNCTION 17