summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-08 21:39:03 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-08 21:39:03 -0500
commitae4bce4e401e972134a29f88f26497e5761a0ee9 (patch)
tree79f2d07dd0dbd32fae9d397fd7f23052fe46d857 /types.h
parent691c36c872d45315f4d7221bd689e29429a6a30d (diff)
fixed cgen of local fns
Diffstat (limited to 'types.h')
-rw-r--r--types.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/types.h b/types.h
index 64b4fc8..74c469f 100644
--- a/types.h
+++ b/types.h
@@ -804,14 +804,12 @@ typedef struct Declaration {
};
} foreign;
};
- union {
- Value val; /* only for constant decls. */
+ Value val; /* only for constant decls and non-constant globals. */
- /* for eval, for non-constant decls.: */
- /* the pointers to values need to be fixed, which is why this isn't just Value *. */
- /* OPTIM: some block array of values somewhere which we can just use a pointer to, which is freed when the block is exited? */
- Value **val_stack;
- };
+ /* for eval, for non-constant local decls: */
+ /* the pointers to values need to be fixed, which is why this isn't just Value *. */
+ /* OPTIM: some block array of values somewhere which we can just use a pointer to, which is freed when the block is exited? */
+ Value **val_stack;
} Declaration;
typedef enum {