aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2015-06-22 19:01:29 +0800
committerDeterminant <ted.sybil@gmail.com>2015-06-22 19:01:29 +0800
commit2497fd9e7a0fae5ee4887890d7a312e0e08a93b8 (patch)
tree382f97575bd2df9ee6abb1662b11b279fc22d72b /common.h
parent196e9b48a3541caccdffc5743001cced70667091 (diff)
major change: use luarocks to manage project
Diffstat (limited to 'common.h')
-rw-r--r--common.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/common.h b/common.h
deleted file mode 100644
index e21c7a5..0000000
--- a/common.h
+++ /dev/null
@@ -1,36 +0,0 @@
-#ifndef NERV_COMMON_H
-#define NERV_COMMON_H
-#include "lua.h"
-#include "lauxlib.h"
-#include "lualib.h"
-#include "luaT/luaT.h"
-#include <stdio.h>
-#include <stdlib.h>
-
-typedef struct HashNode {
- const char *key;
- void *val;
- struct HashNode *next;
-} HashNode;
-
-typedef int (*HashMapCmp_t)(const char *a, const char *b);
-typedef size_t (*HashKey_t)(const char *key);
-
-typedef struct HashMap {
- HashNode **bucket;
- HashMapCmp_t cmp;
- HashKey_t hfunc;
- size_t size;
-} HashMap;
-
-HashMap *hashmap_create(size_t size, HashKey_t hfunc, HashMapCmp_t cmp);
-void *hashmap_getval(HashMap *h, const char *key);
-void hashmap_setval(HashMap *h, const char *key, void *val);
-void hashmap_clear(HashMap *h);
-
-size_t bkdr_hash(const char *key);
-
-int nerv_error(lua_State *L, const char *err_mesg_fmt, ...);
-int nerv_error_method_not_implemented(lua_State *L);
-void luaN_append_methods(lua_State *L, const luaL_Reg *mlist);
-#endif