lua/lstring.h File Reference

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

Go to the source code of this file.

Defines

#define sizestring(l)
#define sizeudata(l)   (cast(lu_mem, sizeof(union Udata))+(l))
#define luaS_new(L, s)   (luaS_newlstr(L, s, strlen(s)))
#define luaS_newliteral(L, s)
#define luaS_fix(s)   ((s)->tsv.marked |= (1<<4))

Functions

void luaS_resize (lua_State *L, int newsize)
UdataluaS_newudata (lua_State *L, size_t s)
void luaS_freeall (lua_State *L)
TStringluaS_newlstr (lua_State *L, const char *str, size_t l)


Define Documentation

#define luaS_fix (  )     ((s)->tsv.marked |= (1<<4))

Definition at line 25 of file lstring.h.

Referenced by f_luaopen(), luaT_init(), and luaX_init().

#define luaS_new ( L,
 )     (luaS_newlstr(L, s, strlen(s)))

#define luaS_newliteral ( L,
 ) 

Value:

(luaS_newlstr(L, "" s, \
                                 (sizeof(s)/sizeof(char))-1))

Definition at line 22 of file lstring.h.

Referenced by adjust_varargs(), and f_luaopen().

#define sizestring (  ) 

Value:

(cast(lu_mem, sizeof(union TString))+ \
                         (cast(lu_mem, l)+1)*sizeof(char))

Definition at line 16 of file lstring.h.

Referenced by freeobj(), and newlstr().

#define sizeudata (  )     (cast(lu_mem, sizeof(union Udata))+(l))

Definition at line 19 of file lstring.h.

Referenced by freeobj(), luaC_separateudata(), and luaS_newudata().


Function Documentation

void luaS_freeall ( lua_State L  ) 

Definition at line 21 of file lstring.c.

References G, lua_assert, and luaM_freearray.

Referenced by close_state().

TString* luaS_newlstr ( lua_State L,
const char *  str,
size_t  l 
)

Udata* luaS_newudata ( lua_State L,
size_t  s 
)

void luaS_resize ( lua_State L,
int  newsize 
)


Generated on Fri Dec 12 13:02:11 2008 for rpm by  doxygen 1.5.6