fix build-system wrt lua things.
[apps/madmutt.git] / lib-lua / lib-lua_priv.h
index 84fd121..93dd397 100644 (file)
 #include <lualib.h>
 #include <lauxlib.h>
 
-typedef enum reg_type {
-    REG_NIL,
-    REG_INT,
-    REG_STR,
-} reg_type;
-
 typedef struct reg_entry {
     int type;
     union {
         int i;
-        void *p;
         char *s;
     };
 } reg_entry;
 
-static inline void reg_entry_wipe(reg_entry *e) {
-    switch (e->type) {
-      case REG_STR:
-        p_delete(&e->s);
-        break;
-      default:
-        break;
-    }
-    e->type = REG_NIL;
-}
-
-#define LUA_MADMUTT  "madmutt"
-int luaopen_madmutt(lua_State *L);
 
 #endif