diff options
Diffstat (limited to 'dseg.h')
| -rw-r--r-- | dseg.h | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -1,7 +1,7 @@ #ifndef DSEG_H #define DSEG_H -#include "ccc.h" +#include "hashmap.h" #include <stdio.h> struct dseg_entry { @@ -14,15 +14,9 @@ struct dseg_entry { char* symbol; }; -struct dseg { - struct dseg_entry** entries; - integral_t sz; - integral_t cap; -}; - -void dseg_init(struct dseg* dseg); -void dseg_destroy(struct dseg* dseg); -const char* dseg_put(struct dseg* dseg, struct dseg_entry entry); -void emit_dseg(FILE* outfile, const struct dseg* dseg); +void dseg_init(struct hash_map* dseg); +void dseg_destroy(struct hash_map* dseg); +const char* dseg_put(struct hash_map* dseg, struct dseg_entry entry); +void emit_dseg(FILE* outfile, const struct hash_map* dseg); #endif |
