lstring.cpp File Reference

#include <string.h>
#include "lua.h"
#include "lmem.h"
#include "lobject.h"
#include "lstate.h"
#include "lstring.h"

Go to the source code of this file.

Defines

#define lstring_c
#define LUA_CORE

Functions

void luaS_resize (lua_State *L, int newsize)
static TStringnewlstr (lua_State *L, const char *str, size_t l, unsigned int h)
TStringluaS_newlstr (lua_State *L, const char *str, size_t l)
UdataluaS_newudata (lua_State *L, size_t s, Table *e)


Define Documentation

#define lstring_c

Definition at line 10 of file lstring.cpp.

#define LUA_CORE

Definition at line 11 of file lstring.cpp.


Function Documentation

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

Definition at line 75 of file lstring.cpp.

Referenced by LoadString(), lua_concat(), lua_pushlstring(), luaO_pushvfstring(), luaV_concat(), and luaX_newstring().

Udata* luaS_newudata ( lua_State L,
size_t  s,
Table e 
)

Definition at line 96 of file lstring.cpp.

Referenced by lua_newuserdata().

void luaS_resize ( lua_State L,
int  newsize 
)

Definition at line 22 of file lstring.cpp.

Referenced by checkSizes(), f_luaopen(), and newlstr().

static TString* newlstr ( lua_State L,
const char *  str,
size_t  l,
unsigned int  h 
) [static]

Definition at line 50 of file lstring.cpp.

References cast, G, stringtable::hash, TString::hash, TString::len, lmod, LUA_TSTRING, luaC_white, luaM_malloc, luaM_toobig(), luaS_resize(), MAX_INT, MAX_SIZET, stringtable::nuse, obj2gco, TString::reserved, stringtable::size, and TString::tsv.

Referenced by luaS_newlstr().


Generated on Mon Feb 16 15:14:58 2009 for Scorched3D by  doxygen 1.5.3