summaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-16 18:19:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-16 18:19:00 -0300
commitc2bb9abceceef125554595e23b7cc18ad3555c7c (patch)
tree2c00262ddf0e4f8acc1db83bdee4a56bb2458117 /liolib.c
parentda32450c3d4c8abd3fd6709692859a12a8886511 (diff)
downloadlua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.gz
lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.tar.bz2
lua-c2bb9abceceef125554595e23b7cc18ad3555c7c.zip
better quotes for strings in error messages
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/liolib.c b/liolib.c
index 1f20cbc4..f78f0245 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.58 2005/02/18 12:40:02 roberto Exp roberto $ 2** $Id: liolib.c,v 2.59 2005/03/18 18:01:14 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*/
@@ -319,8 +319,6 @@ static int g_read (lua_State *L, FILE *f, int first) {
319 read_chars(L, f, ~((size_t)0)); /* read MAX_SIZE_T chars */ 319 read_chars(L, f, ~((size_t)0)); /* read MAX_SIZE_T chars */
320 success = 1; /* always success */ 320 success = 1; /* always success */
321 break; 321 break;
322 case 'w': /* word */
323 return luaL_error(L, "obsolete option `*w' to `read'");
324 default: 322 default:
325 return luaL_argerror(L, n, "invalid format"); 323 return luaL_argerror(L, n, "invalid format");
326 } 324 }