rpm  4.5
Data Structures | Macros | Functions
ldo.c File Reference
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lgc.h"
#include "lmem.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lparser.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lundump.h"
#include "lvm.h"
#include "lzio.h"
Include dependency graph for ldo.c:

Go to the source code of this file.

Data Structures

struct  lua_longjmp
 
struct  SParser
 

Macros

#define ldo_c
 

Functions

static void seterrorobj (lua_State *L, int errcode, StkId oldtop)
 
void luaD_throw (lua_State *L, int errcode)
 
int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud)
 
static void restore_stack_limit (lua_State *L)
 
static void correctstack (lua_State *L, TObject *oldstack)
 
void luaD_reallocstack (lua_State *L, int newsize)
 
void luaD_reallocCI (lua_State *L, int newsize)
 
void luaD_growstack (lua_State *L, int n)
 
static void luaD_growCI (lua_State *L)
 
void luaD_callhook (lua_State *L, int event, int line)
 
static void adjust_varargs (lua_State *L, int nfixargs, StkId base)
 
static StkId tryfuncTM (lua_State *L, StkId func)
 
StkId luaD_precall (lua_State *L, StkId func)
 
static StkId callrethooks (lua_State *L, StkId firstResult)
 
void luaD_poscall (lua_State *L, int wanted, StkId firstResult)
 
void luaD_call (lua_State *L, StkId func, int nResults)
 
static void resume (lua_State *L, void *ud)
 
static int resume_error (lua_State *L, const char *msg)
 
LUA_API int lua_resume (lua_State *L, int nargs)
 
LUA_API int lua_yield (lua_State *L, int nresults)
 
int luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t old_top, ptrdiff_t ef)
 
static void f_parser (lua_State *L, void *ud)
 
int luaD_protectedparser (lua_State *L, ZIO *z, int bin)
 

Macro Definition Documentation

#define ldo_c

Definition at line 12 of file ldo.c.

Function Documentation

static void adjust_varargs ( lua_State L,
int  nfixargs,
StkId  base 
)
static
static StkId callrethooks ( lua_State L,
StkId  firstResult 
)
static

Definition at line 281 of file ldo.c.

References lua_State::ci, CI_C, CallInfo::l, luaD_callhook(), restorestack, savestack, CallInfo::state, and CallInfo::u.

Referenced by luaD_poscall().

static void correctstack ( lua_State L,
TObject oldstack 
)
static
static void f_parser ( lua_State L,
void *  ud 
)
static
LUA_API int lua_resume ( lua_State L,
int  nargs 
)
LUA_API int lua_yield ( lua_State L,
int  nresults 
)
void luaD_call ( lua_State L,
StkId  func,
int  nResults 
)
void luaD_callhook ( lua_State L,
int  event,
int  line 
)
static void luaD_growCI ( lua_State L)
static

Definition at line 152 of file ldo.c.

References LUA_MAXCALLS, luaD_reallocCI(), luaD_throw(), luaG_runerror(), and lua_State::size_ci.

Referenced by luaD_precall().

void luaD_growstack ( lua_State L,
int  n 
)

Definition at line 144 of file ldo.c.

References EXTRA_STACK, luaD_reallocstack(), and lua_State::stacksize.

int luaD_pcall ( lua_State L,
Pfunc  func,
void *  u,
ptrdiff_t  old_top,
ptrdiff_t  ef 
)
void luaD_poscall ( lua_State L,
int  wanted,
StkId  firstResult 
)
StkId luaD_precall ( lua_State L,
StkId  func 
)
int luaD_protectedparser ( lua_State L,
ZIO z,
int  bin 
)
int luaD_rawrunprotected ( lua_State L,
Pfunc  f,
void *  ud 
)
void luaD_reallocCI ( lua_State L,
int  newsize 
)
void luaD_reallocstack ( lua_State L,
int  newsize 
)
void luaD_throw ( lua_State L,
int  errcode 
)
static void restore_stack_limit ( lua_State L)
static
static void resume ( lua_State L,
void *  ud 
)
static
static int resume_error ( lua_State L,
const char *  msg 
)
static

Definition at line 368 of file ldo.c.

References CallInfo::base, lua_State::ci, incr_top, lua_unlock, luaS_new, setsvalue2s, and lua_State::top.

Referenced by lua_resume().

static void seterrorobj ( lua_State L,
int  errcode,
StkId  oldtop 
)
static

Definition at line 50 of file ldo.c.

References luaS_new, MEMERRMSG, setobjs2s, setsvalue2s, and lua_State::top.

Referenced by lua_resume(), luaD_pcall(), and luaD_protectedparser().

static StkId tryfuncTM ( lua_State L,
StkId  func 
)
static