33#define ZSYMAP (ZRYTHM->symap)
char ** symbols
Unsorted array of strings, such that the symbol for ID i is found at symbols[i - 1].
uint32_t * index
Array of IDs, sorted by corresponding string in symbols.
uint32_t size
Number of symbols (number of items in symbols and index).
const char * symap_unmap(Symap *map, uint32_t id)
Unmap a symbol ID back to a symbol, or NULL if no such ID exists.
uint32_t symap_map(Symap *map, const char *sym)
Map a string to a symbol ID.
void symap_free(Symap *map)
Free a symbol map.
Symap * symap_new(void)
Create a new symbol map.
uint32_t symap_try_map(Symap *map, const char *sym)
Map a string to a symbol ID if it is already mapped, otherwise return 0.