diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-20 23:44:05 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-12-20 23:44:05 -0500 |
commit | b268bf59a6efbca460fef5bbd56f514df570a0bf (patch) | |
tree | 34a87d28d67236dc19c4afcd5c7b612586b95d46 /types.h | |
parent | f6fa7bba675f78365f7f31d44fb96b52b11dfa77 (diff) |
switched to different ID system for identgs
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -173,7 +173,7 @@ typedef struct IdentTree { /* zero value is an empty trie */ uint16_t depth; unsigned char index_in_parent; /* index of this in .parent.children */ - U64 id; /* unique integer associated with this identifier - also index in Identifiers.trees */ + U64 id; /* 0 if there's no actual identifier here, otherwise unique positive integer associated with this identifier */ struct IdentTree *parent; struct IdentTree *children[TREE_NCHILDREN]; IdentDecl *decls; /* array of declarations of this identifier */ @@ -184,6 +184,7 @@ typedef IdentTree *Identifier; typedef struct Identifiers { BlockArr trees; IdentTree *root; + U64 nidents; } Identifiers; typedef enum { |