summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-12-20 23:44:05 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2019-12-20 23:44:05 -0500
commitb268bf59a6efbca460fef5bbd56f514df570a0bf (patch)
tree34a87d28d67236dc19c4afcd5c7b612586b95d46 /types.h
parentf6fa7bba675f78365f7f31d44fb96b52b11dfa77 (diff)
switched to different ID system for identgs
Diffstat (limited to 'types.h')
-rw-r--r--types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/types.h b/types.h
index 015ec9a..91bc88b 100644
--- a/types.h
+++ b/types.h
@@ -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 {