1
0
mirror of https://github.com/elua/elua.git synced 2025-01-08 20:56:17 +08:00

Minimize (textual) differences with standard Lua and Lualong (removing extra white space, etc).

This commit is contained in:
Frédéric Thomas 2008-08-05 14:26:28 +00:00
parent d247f3dd69
commit ff3b4a3544
5 changed files with 8 additions and 0 deletions

View File

@ -623,6 +623,7 @@ LUALIB_API int (luaL_loadstring) (lua_State *L, const char *s) {
/* }====================================================== */
static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
(void)ud;
(void)osize;
@ -634,6 +635,7 @@ static void *l_alloc (void *ud, void *ptr, size_t osize, size_t nsize) {
return realloc(ptr, nsize);
}
static int panic (lua_State *L) {
(void)L; /* to avoid warnings */
fprintf(stderr, "PANIC: unprotected error in call to Lua API (%s)\n",
@ -647,3 +649,4 @@ LUALIB_API lua_State *luaL_newstate (void) {
if (L) lua_atpanic(L, &panic);
return L;
}

View File

@ -39,3 +39,4 @@ LUALIB_API void luaL_openlibs (lua_State *L) {
lua_call(L, 1, 0);
}
}

View File

@ -139,6 +139,7 @@ void luaE_freethread (lua_State *L, lua_State *L1) {
luaM_freemem(L, fromstate(L1), state_size(lua_State));
}
LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
int i;
lua_State *L;

View File

@ -373,6 +373,7 @@ static int pmain (lua_State *L) {
return 0;
}
int lua_main (int argc, char **argv) {
int status;
struct Smain s;

View File

@ -12,8 +12,10 @@
#include <stdarg.h>
#include <stddef.h>
#include "luaconf.h"
#define LUA_VERSION "Lua 5.1"
#define LUA_RELEASE "Lua 5.1.3"
#define LUA_VERSION_NUM 501