diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-30 10:38:50 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-10-30 10:38:50 -0200 |
| commit | f379d06e24f22cb4d0afa3937c27ef35b73b00a6 (patch) | |
| tree | e87e3def52e622040ec2724433e21daee8322ee3 /ldo.c | |
| parent | 728ff2070135b54c544b90020be268f53bf2d15a (diff) | |
| download | lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.tar.gz lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.tar.bz2 lua-f379d06e24f22cb4d0afa3937c27ef35b73b00a6.zip | |
all API functions are declared in a single line (to facilitate pre-processing).
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 */ |
