aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-07-02 15:50:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-07-02 15:50:18 -0300
commit8f3df1d471d4b7e643492f0e65fac2bdc960398a (patch)
treef24a2b9f1738289c52d799837671e1c4e13039f1
parent1a172117070d793d73cdcad5b3efd75ef7dbc728 (diff)
downloadlua-8f3df1d471d4b7e643492f0e65fac2bdc960398a.tar.gz
lua-8f3df1d471d4b7e643492f0e65fac2bdc960398a.tar.bz2
lua-8f3df1d471d4b7e643492f0e65fac2bdc960398a.zip
small details.
-rw-r--r--iolib.c4
-rw-r--r--lualoc.h7
2 files changed, 6 insertions, 5 deletions
diff --git a/iolib.c b/iolib.c
index dd957638..9945d6b4 100644
--- a/iolib.c
+++ b/iolib.c
@@ -29,11 +29,7 @@ static void pushresult (int i)
29 lua_pushuserdata(NULL); 29 lua_pushuserdata(NULL);
30 else { 30 else {
31 lua_pushnil(); 31 lua_pushnil();
32#ifndef OLD_ANSI
33 lua_pushstring(strerror(errno)); 32 lua_pushstring(strerror(errno));
34#else
35 lua_pushstring("O.S. unable to define the error");
36#endif
37 } 33 }
38} 34}
39 35
diff --git a/lualoc.h b/lualoc.h
index 37993a31..957b08a5 100644
--- a/lualoc.h
+++ b/lualoc.h
@@ -1,15 +1,17 @@
1/* 1/*
2** lualoc.h 2** lualoc.h
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4** $Id: $ 4** $Id: lualoc.h,v 1.1 1997/07/02 18:45:09 roberto Exp roberto $
5*/ 5*/
6 6
7#ifndef lualoc_h 7#ifndef lualoc_h
8#define lualoc_h 8#define lualoc_h
9 9
10
10#ifndef OLD_ANSI 11#ifndef OLD_ANSI
11#include <locale.h> 12#include <locale.h>
12#else 13#else
14
13#define strcoll(a,b) strcmp(a,b) 15#define strcoll(a,b) strcmp(a,b)
14#define setlocale(a,b) 0 16#define setlocale(a,b) 0
15#define LC_ALL 0 17#define LC_ALL 0
@@ -18,6 +20,9 @@
18#define LC_MONETARY 0 20#define LC_MONETARY 0
19#define LC_NUMERIC 0 21#define LC_NUMERIC 0
20#define LC_TIME 0 22#define LC_TIME 0
23
24#define strerror(e) "O.S. is unable to define the error"
25
21#endif 26#endif
22 27
23#endif 28#endif