diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-17 13:28:21 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-10-17 13:28:21 -0300 |
| commit | f97c64d7bf4c0f373711795d8faba0e8cd206761 (patch) | |
| tree | 99c9e25132b2ef193dc417873e8f44e5c0ea8738 /liolib.c | |
| parent | ea3155e380080095a6f8c63297f0505789cf08b7 (diff) | |
| download | lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.gz lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.tar.bz2 lua-f97c64d7bf4c0f373711795d8faba0e8cd206761.zip | |
macros 'LUA_QL'/'LUA_QL' deprecated
Diffstat (limited to 'liolib.c')
| -rw-r--r-- | liolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: liolib.c,v 2.131 2014/10/03 12:54:57 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.132 2014/10/15 14:27:40 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 | */ |
| @@ -70,7 +70,7 @@ | |||
| 70 | /* ANSI definitions */ | 70 | /* ANSI definitions */ |
| 71 | #define l_popen(L,c,m) \ | 71 | #define l_popen(L,c,m) \ |
| 72 | ((void)((void)c, m), \ | 72 | ((void)((void)c, m), \ |
| 73 | luaL_error(L, LUA_QL("popen") " not supported"), \ | 73 | luaL_error(L, "'popen' not supported"), \ |
| 74 | (FILE*)0) | 74 | (FILE*)0) |
| 75 | #define l_pclose(L,file) ((void)L, (void)file, -1) | 75 | #define l_pclose(L,file) ((void)L, (void)file, -1) |
| 76 | 76 | ||
| @@ -244,7 +244,7 @@ static void opencheck (lua_State *L, const char *fname, const char *mode) { | |||
| 244 | LStream *p = newfile(L); | 244 | LStream *p = newfile(L); |
| 245 | p->f = fopen(fname, mode); | 245 | p->f = fopen(fname, mode); |
| 246 | if (p->f == NULL) | 246 | if (p->f == NULL) |
| 247 | luaL_error(L, "cannot open file " LUA_QS " (%s)", fname, strerror(errno)); | 247 | luaL_error(L, "cannot open file '%s' (%s)", fname, strerror(errno)); |
| 248 | } | 248 | } |
| 249 | 249 | ||
| 250 | 250 | ||
