diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-10 11:44:33 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-10 11:44:33 -0500 |
commit | 79a9f6d1e6fb8d9fb4b630751fad0750c7fc5b33 (patch) | |
tree | 0a5c62a1f923e41df6304a85eb8b30c262a6faa2 /types.h | |
parent | af92fa4add356ce0435aaa16d13e8f1accf3f475 (diff) |
a bit more importing
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -83,7 +83,7 @@ typedef U32 IdentID; /* identifier ID for cgen (anonymous variables). not to be typedef struct ErrCtx { const char *filename; - char *str; /* file contents */ + char *str; /* file contents, or NULL if none are available */ bool enabled; bool color_enabled; bool have_errored; @@ -183,6 +183,7 @@ typedef struct IdentTree { uint16_t depth; unsigned char index_in_parent; /* index of this in .parent.children */ bool export_name; /* is this identifier's name important? */ + bool anonymous; /* is this identifier not part of a tree? */ U64 export_id; /* 0 if there's no exported identifier here, otherwise unique positive integer associated with this identifier */ struct Package *pkg; /* NULL if this is not associated with a package */ struct IdentTree *parent; @@ -802,6 +803,7 @@ typedef struct Importer { Package *pkg; Allocator *allocr; Identifier *ident_map; /* [i] = value of identifier with ID i */ + ErrCtx err_ctx; } Importer; typedef struct CGenerator { |