Sha256: c0e8af4eb33e3357be79f906e7e1191ba53a3a790d36ca15b50471d3a339e1f0

Contents?: true

Size: 814 Bytes

Versions: 18

Compression:

Stored size: 814 Bytes

Contents

/*
** $Id: lstring.h,v 1.43.1.1 2007/12/27 13:02:25 roberto Exp $
** String table (keep all strings handled by Lua)
** See Copyright Notice in lua.h
*/

#ifndef lstring_h
#define lstring_h


#include "lgc.h"
#include "lobject.h"
#include "lstate.h"


#define sizestring(s)	(sizeof(union TString)+((s)->len+1)*sizeof(char))

#define sizeudata(u)	(sizeof(union Udata)+(u)->len)

#define luaS_new(L, s)	(luaS_newlstr(L, s, strlen(s)))
#define luaS_newliteral(L, s)	(luaS_newlstr(L, "" s, \
                                 (sizeof(s)/sizeof(char))-1))

#define luaS_fix(s)	l_setbit((s)->tsv.marked, FIXEDBIT)

LUAI_FUNC void luaS_resize (lua_State *L, int newsize);
LUAI_FUNC Udata *luaS_newudata (lua_State *L, size_t s, Table *e);
LUAI_FUNC TString *luaS_newlstr (lua_State *L, const char *str, size_t l);


#endif

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
immunio-0.15.4 lua-hooks/ext/lua/lstring.h
immunio-0.15.3 lua-hooks/ext/lua/lstring.h
immunio-0.15.2 lua-hooks/ext/lua/lstring.h
hirlite-0.1.0 vendor/rlite/deps/lua/src/lstring.h
hirlite-0.0.2.2 vendor/rlite/deps/lua/src/lstring.h
hirlite-0.0.2.1 vendor/rlite/deps/lua/src/lstring.h
Tamar-0.7.18 src/lua/src/lstring.h
Tamar-0.7.17 src/lua/src/lstring.h
Tamar-0.7.16 src/lua/src/lstring.h
Tamar-0.7.14 src/lua/src/lstring.h
Tamar-0.7.13 src/lua/src/lstring.h
Tamar-0.7.12 src/lua/src/lstring.h
Tamar-0.7.11 src/lua/src/lstring.h
Tamar-0.7.10 src/lua/src/lstring.h
Tamar-0.7.9 src/lua/src/lstring.h
Tamar-0.7.8 src/lua/src/lstring.h
Tamar-0.7.7 src/lua/src/lstring.h
Tamar-0.7.6 src/lua/src/lstring.h