diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-08 21:39:03 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-08 21:39:03 -0500 |
commit | ae4bce4e401e972134a29f88f26497e5761a0ee9 (patch) | |
tree | 79f2d07dd0dbd32fae9d397fd7f23052fe46d857 /types.h | |
parent | 691c36c872d45315f4d7221bd689e29429a6a30d (diff) |
fixed cgen of local fns
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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 { |