diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-09-08 12:41:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-09-08 12:41:05 -0300 |
commit | 41964648eea1427d53934b886abb68cc8457b019 (patch) | |
tree | b0388dfebe6614d5d49306193faf78f8b9e1a6a1 /lundump.h | |
parent | 502214f8a551cd01d94677f98a40aa51531ef71d (diff) | |
download | lua-41964648eea1427d53934b886abb68cc8457b019.tar.gz lua-41964648eea1427d53934b886abb68cc8457b019.tar.bz2 lua-41964648eea1427d53934b886abb68cc8457b019.zip |
long strings are created directly in final position when possible
(instead of using an auxiliar buffer to first create the string
and then allocate the final string and copy result there)
Diffstat (limited to 'lundump.h')
-rw-r--r-- | lundump.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.h,v 1.43 2014/04/15 14:28:20 roberto Exp roberto $ | 2 | ** $Id: lundump.h,v 1.44 2014/06/19 18:27:20 roberto Exp roberto $ |
3 | ** load precompiled Lua chunks | 3 | ** load precompiled Lua chunks |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -23,8 +23,7 @@ | |||
23 | #define LUAC_FORMAT 0 /* this is the official format */ | 23 | #define LUAC_FORMAT 0 /* this is the official format */ |
24 | 24 | ||
25 | /* load one chunk; from lundump.c */ | 25 | /* load one chunk; from lundump.c */ |
26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, | 26 | LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name); |
27 | const char* name); | ||
28 | 27 | ||
29 | /* dump one chunk; from ldump.c */ | 28 | /* dump one chunk; from ldump.c */ |
30 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, | 29 | LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, |