summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/liolib.c b/liolib.c
index 22668404..4befcfa6 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 1.7 1997/11/27 15:59:44 roberto Exp roberto $ 2** $Id: liolib.c,v 1.8 1997/11/28 12:40:37 roberto Exp roberto $
3** Standard I/O (and system) library 3** Standard I/O (and system) library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -28,7 +28,7 @@
28#define LC_MONETARY 0 28#define LC_MONETARY 0
29#define LC_NUMERIC 0 29#define LC_NUMERIC 0
30#define LC_TIME 0 30#define LC_TIME 0
31#define strerror(e) "O.S. is unable to define the error" 31#define strerror(e) "(no error message provided by operating system)"
32#endif 32#endif
33 33
34 34
@@ -72,7 +72,7 @@ static int ishandler (lua_Object f)
72{ 72{
73 if (lua_isuserdata(f)) { 73 if (lua_isuserdata(f)) {
74 if (lua_tag(f) == gettag(CLOSEDTAG)) 74 if (lua_tag(f) == gettag(CLOSEDTAG))
75 lua_error("trying to access a closed file"); 75 lua_error("cannot access a closed file");
76 return lua_tag(f) == gettag(IOTAG); 76 return lua_tag(f) == gettag(IOTAG);
77 } 77 }
78 else return 0; 78 else return 0;
@@ -82,7 +82,7 @@ static FILE *getfile (char *name)
82{ 82{
83 lua_Object f = lua_getglobal(name); 83 lua_Object f = lua_getglobal(name);
84 if (!ishandler(f)) 84 if (!ishandler(f))
85 luaL_verror("global variable %.50s is not a file handle", name); 85 luaL_verror("global variable `%.50s' is not a file handle", name);
86 return lua_getuserdata(f); 86 return lua_getuserdata(f);
87} 87}
88 88