diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-26 16:59:20 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-11-26 16:59:20 -0200 |
| commit | d015f1fc02e03864b0ed3ad668a6e0660417a718 (patch) | |
| tree | 00b5962e40540bbb8a71bf8665fed256182aa6c7 /lstring.h | |
| parent | 790690a2236ab0ad0cce35551c17e62064b4c85b (diff) | |
| download | lua-d015f1fc02e03864b0ed3ad668a6e0660417a718.tar.gz lua-d015f1fc02e03864b0ed3ad668a6e0660417a718.tar.bz2 lua-d015f1fc02e03864b0ed3ad668a6e0660417a718.zip | |
table sizes don't need to be primes; power of 2 gives the same performance.
Diffstat (limited to 'lstring.h')
| -rw-r--r-- | lstring.h | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstring.h,v 1.12 1999/11/04 17:22:26 roberto Exp roberto $ | 2 | ** $Id: lstring.h,v 1.13 1999/11/22 13:12:07 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 | */ |
| @@ -26,7 +26,7 @@ | |||
| 26 | 26 | ||
| 27 | 27 | ||
| 28 | void luaS_init (lua_State *L); | 28 | void luaS_init (lua_State *L); |
| 29 | void luaS_grow (lua_State *L, stringtable *tb); | 29 | void luaS_resize (lua_State *L, stringtable *tb, int newsize); |
| 30 | TaggedString *luaS_createudata (lua_State *L, void *udata, int tag); | 30 | TaggedString *luaS_createudata (lua_State *L, void *udata, int tag); |
| 31 | void luaS_freeall (lua_State *L); | 31 | void luaS_freeall (lua_State *L); |
| 32 | void luaS_free (lua_State *L, TaggedString *ts); | 32 | void luaS_free (lua_State *L, TaggedString *ts); |
