s502 assembler
A very simple assembler for the 6502 line of processors written in C
|
int map_set(Map *map, char *name, int value)
Sets a key in the map.
void map_debug_print(Map *map)
Print all key-value pairs of the map.
Simple key->value map (str->int)
struct MapEntry * next
pointer to the next entry or NULL
void map_free(Map *map)
Free the map with all associated memory.
int map_get(Map *map, char *name)
Get the value of a key.
char name[MAP_MAX_KEY_LEN]
key of the entry
@ MAP_MAX_KEY_LEN
Key buffer size for Map.
Map * map_new()
Create a new map with 0 elements.
int value
the value the entry holds