1
0
forked from GitHub/gf-core

initial import of the C runtime

This commit is contained in:
kr.angelov
2012-01-20 13:41:10 +00:00
parent b972835712
commit 2eee382a62
94 changed files with 14344 additions and 1277 deletions

24
src/runtime/c/gu/intern.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef GU_INTERN_H_
#define GU_INTERN_H_
#include <gu/map.h>
#include <gu/str.h>
#include <gu/string.h>
typedef struct GuIntern GuIntern;
GuIntern* gu_new_intern(GuPool* str_pool, GuPool* pool);
const char* gu_intern_str(GuIntern* intern, const char* cstr);
typedef struct GuSymTable GuSymTable;
typedef GuString GuSymbol;
GuSymTable*
gu_new_symtable(GuPool* sym_pool, GuPool* pool);
GuSymbol
gu_symtable_intern(GuSymTable* symtab, GuString string);
#endif /* GU_INTERN_H_ */