shithub: gpufs

ref: d53100c1bdfb9036a824fa60cd2dd58d02120210
dir: /names.h/

View raw version
typedef struct Name Name;
struct Name {
	uint id;
	char *name;
	Name *next;
};

typedef struct String String;
struct String {
	uint id;
	char *str;
	String *next;
};

void nameadd(uint id, char *name);
char *namelookup(uint id);

void stringadd(uint id, char *str);
char *strlookup(uint id);