diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-24 17:14:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-03-24 17:14:25 -0300 |
commit | daa937c043bb0ddb5f4bfe676f8ff13825a99651 (patch) | |
tree | 4f65f0a9c7f050710d462cf68648e7207dfaf2da /liolib.c | |
parent | 21455162b5da29e5850bee1e16b85e226ae391b2 (diff) | |
download | lua-daa937c043bb0ddb5f4bfe676f8ff13825a99651.tar.gz lua-daa937c043bb0ddb5f4bfe676f8ff13825a99651.tar.bz2 lua-daa937c043bb0ddb5f4bfe676f8ff13825a99651.zip |
pattern-matching support for '\0'.
Diffstat (limited to 'liolib.c')
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 1.15 1998/03/06 16:54:42 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 1.16 1998/03/06 18:47:42 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 | */ |
@@ -209,7 +209,7 @@ static void io_read (void) | |||
209 | m = 0; | 209 | m = 0; |
210 | } | 210 | } |
211 | else { | 211 | else { |
212 | m = luaI_singlematch((char)c, p, &ep); | 212 | m = luaI_singlematch(c, p, &ep); |
213 | if (m) { | 213 | if (m) { |
214 | if (inskip == 0) luaL_addchar(c); | 214 | if (inskip == 0) luaL_addchar(c); |
215 | c = NEED_OTHER; | 215 | c = NEED_OTHER; |