History

Lua 5.3.0-work2

Lua Team committed 12 years ago

Commit ad386d91 parent b83a40a60 files · +3280 −2672Browse files

Showing the changes to src/lstring.h (1 of 60 files). Show all

Unified · Split

src/lstring.h+3−5
@@ -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.h4** 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 word24** test whether a string is a reserved word
@@ -36,9 +34,9 @@ · 9 unmodified lines
36 34
37LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);35LUAI_FUNC unsigned int luaS_hash (const char *str, size_t l, unsigned int seed);
38LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);36LUAI_FUNC int luaS_eqlngstr (TString *a, TString *b);
39LUAI_FUNC int luaS_eqstr (TString *a, TString *b);
40LUAI_FUNC void luaS_resize (lua_State *L, int newsize);37LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
41LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e);38LUAI_FUNC void luaS_remove (lua_State *L, TString *ts);
39LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s);
42LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);40LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);
43LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);41LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
44 42

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t