Debian Codegraph @

include/utils/hash.h

raw
1 #ifndef HASH_H
2 #define HASH_H
3
4 #include "main.h"
5 #include <stddef.h>
6 #include <stdint.h>
7
8 typedef string_t hkey_t;
9
10 // return 0 if successfully inserted; -1 for ENOMEM; 1 for duplicated key
11 extern int insert_key (hkey_t *key, uint16_t line_nr);
12
13 extern uint16_t find_key (hkey_t *key);
14
15 extern void init_table (void);
16
17 extern void free_table (void);
18
19 #endif