diff options
Diffstat (limited to 'ldo.c')
| -rw-r--r-- | ldo.c | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.c,v 1.107 2000/10/10 19:51:39 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.108 2000/10/20 16:39:03 roberto Exp roberto $ |
| 3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -301,8 +301,7 @@ static int parse_buffer (lua_State *L, const char *buff, size_t size, | |||
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | 303 | ||
| 304 | LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, | 304 | LUA_API int lua_dobuffer (lua_State *L, const char *buff, size_t size, const char *name) { |
| 305 | const char *name) { | ||
| 306 | int status = parse_buffer(L, buff, size, name); | 305 | int status = parse_buffer(L, buff, size, name); |
| 307 | if (status == 0) /* parse OK? */ | 306 | if (status == 0) /* parse OK? */ |
| 308 | status = lua_call(L, 0, LUA_MULTRET); /* call main */ | 307 | status = lua_call(L, 0, LUA_MULTRET); /* call main */ |
