diff options
Diffstat (limited to 'util/dict.h')
| -rw-r--r-- | util/dict.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/util/dict.h b/util/dict.h index 109c07a..2da8e6f 100644 --- a/util/dict.h +++ b/util/dict.h @@ -28,6 +28,8 @@ struct dict { size_t num_levels; }; +#define DICT_INIT(strings_, nstrings_, char_to_bit_) (struct dict){.strings = strings_, .nstrings = nstrings_, .char_to_bit = char_to_bit_} + int dict_compile(struct dict *d); void dict_free(struct dict *d); void dict_print(struct dict *d); |
