diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-01-23 07:05:01 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-01-23 07:05:01 +0100 |
commit | 43ff02231117bacb3cd60af0e654a0b3e8b5678b (patch) | |
tree | 0523676c9565c7536819f671304651d08c9302df /src/parser.c | |
parent | cc30a97ab90a8fa40707936d3d089d81c49559b6 (diff) |
wip... there is a crash in get_or_create hash map
Diffstat (limited to 'src/parser.c')
-rw-r--r-- | src/parser.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/parser.c b/src/parser.c index 608f670..098962a 100644 --- a/src/parser.c +++ b/src/parser.c @@ -65,19 +65,6 @@ static void tsl_parser_pop_function(TslParser *self) { tsl_buffer_pop(&self->function_bytecode_list_index, sizeof(int)); } -#if 0 -static uint64_t hash_string_view(const void *data, size_t size) { - uint64_t result = 0xdec05eba; - const uint8_t *p = data; - while(size) { - result = ((result << 5) + result) + *p; - ++p; - --size; - } - return result; -} -#endif - static TslParseResult tsl_parser_parse_map(TslParser *self, int *num_items) { #define parse_map_element_separator \ return_if_error(tsl_tokenizer_accept(&self->tokenizer, TSL_TOKEN_COLON)); \ |