]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/lua.h
TRUSTS: require sqlite
[irc/quakenet/newserv.git] / lua / lua.h
index fce6fba86f1d83dd5a0674c1d17d0e1ebb578043..1fd5b449626210c1a57bfc497c824f4914e9ef2a 100644 (file)
--- a/lua/lua.h
+++ b/lua/lua.h
@@ -5,7 +5,9 @@
 #ifndef _LUA_H
 #define _LUA_H
 
+#ifndef __USE_BSD
 #define __USE_BSD
+#endif
 
 #include <lua.h>
 #include <lauxlib.h>
@@ -21,6 +23,7 @@
 
 #include "lualocal.h"
 #include "luasocket.h"
+#include "luascheduler.h"
 
 #define luamalloc(x) nsmalloc(POOL_LUA, x)
 #define luarealloc(x, y) nsrealloc(POOL_LUA, x, y)
@@ -28,8 +31,8 @@
 
 /*** defines ************************************/
 
-#define LUA_BOTVERSION "1.88"
-#define LUA_CHANFIXBOT "D"
+#define LUA_BOTVERSION "1.95"
+#define LUA_CHANFIXBOT "N2"
 #define LUA_OPERCHAN "#twilightzone"
 
 #ifndef LUA_PUKECHAN
@@ -62,13 +65,14 @@ typedef struct lua_list {
   struct lua_list *prev;
   lua_localnick *nicks;
   lua_socket *sockets;
+  lua_scheduler *schedulers;
 } lua_list;
 
 #define LUA_STARTLOOP(l) { lua_list *ll; for(ll=lua_head;ll;ll=ll->next) {  l = ll->l
 
 #define LUA_ENDLOOP() } }
 
-#define LUA_PATHLEN 1024
+#define LUA_PATHLEN 150
 
 extern lua_list *lua_head;
 extern sstring *cpath;
@@ -116,22 +120,6 @@ void lua_debugoutput(char *p, ...) __attribute__ ((format (printf, 1, 2)));
 
 #endif
 
-#ifndef INLINE
-
-#ifdef __GNUC__
-#define INLINE __attribute((always_inline)) inline
-#endif
-
-#ifdef _MSC_VER
-#define INLINE __forceinline
-#endif
-
-#ifndef INLINE
-#define INLINE inline
-#endif
-
-#endif /* INLINE */
-
-INLINE int lua_debugpcall(lua_State *l, char *message, int a, int b, int c);
+int lua_debugpcall(lua_State *l, char *message, int a, int b, int c);
 
 #endif