Showing the changes to src/lstring.h (1 of 60 files). Show all
Unified · Split
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstring.h,v 1.49 2012/02/01 21:57:15 roberto Exp $ | 2 | ** $Id: lstring.h,v 1.54 2014/03/19 18:51:42 roberto Exp $ |
| 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 | */ |
| @@ -19,8 +19,6 @@ · 13 unmodified lines | |||
| 19 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ | 19 | #define luaS_newliteral(L, s) (luaS_newlstr(L, "" s, \ |
| 20 | (sizeof(s)/sizeof(char))-1)) | 20 | (sizeof(s)/sizeof(char))-1)) |
| 21 | 21 | ||
| 22 | #define luaS_fix(s) l_setbit((s)->tsv.marked, FIXEDBIT) | ||
| 23 | |||
| 24 | 22 | ||
| 25 | /* | 23 | /* |
| 26 | ** test whether a string is a reserved word | 24 | ** test whether a string is a reserved word |
| @@ -36,9 +34,9 @@ · 9 unmodified lines | |||
| 36 | 34 | ||
| 37 | LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); | 35 | LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed); |
| 38 | LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); | 36 | LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b); |
| 39 | LUAI_FUNC int luaS_eqstr (TString *a, TString *b); | ||
| 40 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); | 37 | LUAI_FUNC void luaS_resize (lua_State *L, int newsize); |
| 41 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e); | 38 | LUAI_FUNC void luaS_remove (lua_State *L, TString *ts); |
| 39 | LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s); | ||
| 42 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); | 40 | LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l); |
| 43 | LUAI_FUNC TString *luaS_new (lua_State *L, const char *str); | 41 | LUAI_FUNC TString *luaS_new (lua_State *L, const char *str); |
| 44 | 42 | ||