aboutsummaryrefslogtreecommitdiff
path: root/lstring.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-09-08 12:41:05 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-09-08 12:41:05 -0300
commit41964648eea1427d53934b886abb68cc8457b019 (patch)
treeb0388dfebe6614d5d49306193faf78f8b9e1a6a1 /lstring.h
parent502214f8a551cd01d94677f98a40aa51531ef71d (diff)
downloadlua-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 'lstring.h')
-rw-r--r--lstring.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstring.h b/lstring.h
index cba3cb28..0d8e089c 100644
--- a/lstring.h
+++ b/lstring.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.h,v 1.58 2015/03/04 13:31:21 roberto Exp roberto $ 2** $Id: lstring.h,v 1.59 2015/03/25 13:42:19 roberto Exp roberto $
3** String table (keep all strings handled by Lua) 3** String table (keep all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -42,6 +42,7 @@ LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
42LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s); 42LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);
43LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); 43LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
44LUAI_FUNC TString *luaS_new (lua_State *L, const char *str); 44LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
45LUAI_FUNC TString *luaS_createlngstrobj (lua_State *L, size_t l);
45 46
46 47
47#endif 48#endif