diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-04 18:23:39 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-04 18:23:39 -0300 |
commit | 5a8bb00df443dfdb5708689f32c64e90f2557bf8 (patch) | |
tree | f0328ef79978ce9bd8ceb63fdef2299b74c87490 /lbuiltin.c | |
parent | 677188de8aa0c4ed49a3db570f0c9ee7cd641ddc (diff) | |
download | lua-5a8bb00df443dfdb5708689f32c64e90f2557bf8.tar.gz lua-5a8bb00df443dfdb5708689f32c64e90f2557bf8.tar.bz2 lua-5a8bb00df443dfdb5708689f32c64e90f2557bf8.zip |
storing chunk "sources" instead of "filenames".
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.54 1999/02/23 14:57:28 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.55 1999/03/01 20:22:16 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -250,7 +250,7 @@ static void luaB_dostring (void) { | |||
250 | char *s = luaL_check_lstr(1, &l); | 250 | char *s = luaL_check_lstr(1, &l); |
251 | if (*s == ID_CHUNK) | 251 | if (*s == ID_CHUNK) |
252 | lua_error("`dostring' cannot run pre-compiled code"); | 252 | lua_error("`dostring' cannot run pre-compiled code"); |
253 | if (lua_dobuffer(s, l, luaL_opt_string(2, NULL)) == 0) | 253 | if (lua_dobuffer(s, l, luaL_opt_string(2, s)) == 0) |
254 | if (luaA_passresults() == 0) | 254 | if (luaA_passresults() == 0) |
255 | lua_pushuserdata(NULL); /* at least one result to signal no errors */ | 255 | lua_pushuserdata(NULL); /* at least one result to signal no errors */ |
256 | } | 256 | } |