X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/354b14ea09f3b6c5c4edab5b4fd0553415787196..8c684fca9c7dbb4a2601628c744be9236ee68641:/lua/lua.h diff --git a/lua/lua.h b/lua/lua.h index ac33db31..43f1fbbb 100644 --- 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 #include @@ -28,7 +30,7 @@ /*** defines ************************************/ -#define LUA_BOTVERSION "1.87" +#define LUA_BOTVERSION "1.90" #define LUA_CHANFIXBOT "D" #define LUA_OPERCHAN "#twilightzone" @@ -48,7 +50,8 @@ #define LUA_AUXVERSION "" #endif -#define LUA_FULLVERSION "Lua engine v" LUA_BOTVERSION " (" LUA_VERSION LUA_AUXVERSION ")" +#define LUA_SMALLVERSION "v" LUA_BOTVERSION " (" LUA_VERSION LUA_AUXVERSION ")" +#define LUA_FULLVERSION "Lua engine " LUA_SMALLVERSION /*** end defines ************************************/ @@ -67,7 +70,7 @@ typedef struct lua_list { #define LUA_ENDLOOP() } } -#define LUA_PATHLEN 1024 +#define LUA_PATHLEN 150 extern lua_list *lua_head; extern sstring *cpath; @@ -110,27 +113,11 @@ extern struct rusage r_usagee; #ifdef LUA_DEBUGSOCKET -void lua_debugoutput(char *p, ...); +void lua_debugoutput(char *p, ...) __attribute__ ((format (printf, 1, 2))); #define DEBUGOUT(p, ...) lua_debugoutput(p , ##__VA_ARGS__) #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