lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 8f3df1d471d4b7e643492f0e65fac2bdc960398a
parent 1a172117070d793d73cdcad5b3efd75ef7dbc728
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  2 Jul 1997 15:49:57 -0300

small details.

Diffstat:
Miolib.c | 4----
Mlualoc.h | 7++++++-
2 files changed, 6 insertions(+), 5 deletions(-)

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