small details.
This commit is contained in:
4
iolib.c
4
iolib.c
@@ -29,11 +29,7 @@ static void pushresult (int i)
|
|||||||
lua_pushuserdata(NULL);
|
lua_pushuserdata(NULL);
|
||||||
else {
|
else {
|
||||||
lua_pushnil();
|
lua_pushnil();
|
||||||
#ifndef OLD_ANSI
|
|
||||||
lua_pushstring(strerror(errno));
|
lua_pushstring(strerror(errno));
|
||||||
#else
|
|
||||||
lua_pushstring("O.S. unable to define the error");
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
7
lualoc.h
7
lualoc.h
@@ -1,15 +1,17 @@
|
|||||||
/*
|
/*
|
||||||
** lualoc.h
|
** lualoc.h
|
||||||
** TecCGraf - PUC-Rio
|
** TecCGraf - PUC-Rio
|
||||||
** $Id: $
|
** $Id: lualoc.h,v 1.1 1997/07/02 18:45:09 roberto Exp roberto $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lualoc_h
|
#ifndef lualoc_h
|
||||||
#define lualoc_h
|
#define lualoc_h
|
||||||
|
|
||||||
|
|
||||||
#ifndef OLD_ANSI
|
#ifndef OLD_ANSI
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#define strcoll(a,b) strcmp(a,b)
|
#define strcoll(a,b) strcmp(a,b)
|
||||||
#define setlocale(a,b) 0
|
#define setlocale(a,b) 0
|
||||||
#define LC_ALL 0
|
#define LC_ALL 0
|
||||||
@@ -18,6 +20,9 @@
|
|||||||
#define LC_MONETARY 0
|
#define LC_MONETARY 0
|
||||||
#define LC_NUMERIC 0
|
#define LC_NUMERIC 0
|
||||||
#define LC_TIME 0
|
#define LC_TIME 0
|
||||||
|
|
||||||
|
#define strerror(e) "O.S. is unable to define the error"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user