Classes | Macros | Functions
ldo.c File Reference
#include "lprefix.h"
#include <setjmp.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lapi.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.

Classes

struct  CloseP
 
struct  lua_longjmp
 
struct  SParser
 

Macros

#define ERRORSTACKSIZE   (LUAI_MAXSTACK + 200)
 
#define errorstatus(s)   ((s) > LUA_YIELD)
 
#define ldo_c
 
#define LUA_CORE
 
#define luai_jmpbuf   jmp_buf
 
#define LUAI_THROW(L, c)   longjmp((c)->b, 1)
 
#define LUAI_TRY(L, c, a)   if (setjmp((c)->b) == 0) { a }
 
#define next_ci(L)   (L->ci->next ? L->ci->next : luaE_extendCI(L))
 

Functions

static void ccall (lua_State *L, StkId func, int nResults, int inc)
 
static void checkmode (lua_State *L, const char *mode, const char *x)
 
static void closepaux (lua_State *L, void *ud)
 
static void correctstack (lua_State *L, StkId oldstack, StkId newstack)
 
static void f_parser (lua_State *L, void *ud)
 
static CallInfofindpcall (lua_State *L)
 
static void finishCcall (lua_State *L, CallInfo *ci)
 
static int finishpcallk (lua_State *L, CallInfo *ci)
 
LUA_API int lua_isyieldable (lua_State *L)
 
LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs, int *nresults)
 
LUA_API int lua_yieldk (lua_State *L, int nresults, lua_KContext ctx, lua_KFunction k)
 
void luaD_call (lua_State *L, StkId func, int nResults)
 
void luaD_callnoyield (lua_State *L, StkId func, int nResults)
 
int luaD_closeprotected (lua_State *L, ptrdiff_t level, int status)
 
int luaD_growstack (lua_State *L, int n, int raiseerror)
 
void luaD_hook (lua_State *L, int event, int line, int ftransfer, int ntransfer)
 
void luaD_hookcall (lua_State *L, CallInfo *ci)
 
void luaD_inctop (lua_State *L)
 
int luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t old_top, ptrdiff_t ef)
 
void luaD_poscall (lua_State *L, CallInfo *ci, int nres)
 
CallInfoluaD_precall (lua_State *L, StkId func, int nresults)
 
void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int narg1)
 
int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, const char *mode)
 
int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud)
 
int luaD_reallocstack (lua_State *L, int newsize, int raiseerror)
 
void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop)
 
void luaD_shrinkstack (lua_State *L)
 
l_noret luaD_throw (lua_State *L, int errcode)
 
void luaD_tryfuncTM (lua_State *L, StkId func)
 
static void moveresults (lua_State *L, StkId res, int nres, int wanted)
 
static int precover (lua_State *L, int status)
 
static void resume (lua_State *L, void *ud)
 
static int resume_error (lua_State *L, const char *msg, int narg)
 
static void rethook (lua_State *L, CallInfo *ci, int nres)
 
static int stackinuse (lua_State *L)
 
static void unroll (lua_State *L, void *ud)
 

Macro Definition Documentation

◆ ERRORSTACKSIZE

#define ERRORSTACKSIZE   (LUAI_MAXSTACK + 200)

Definition at line 177 of file ldo.c.

◆ errorstatus

#define errorstatus (   s)    ((s) > LUA_YIELD)

Definition at line 38 of file ldo.c.

◆ ldo_c

#define ldo_c

Definition at line 7 of file ldo.c.

◆ LUA_CORE

#define LUA_CORE

Definition at line 8 of file ldo.c.

◆ luai_jmpbuf

#define luai_jmpbuf   jmp_buf

Definition at line 75 of file ldo.c.

◆ LUAI_THROW

#define LUAI_THROW (   L,
 
)    longjmp((c)->b, 1)

Definition at line 73 of file ldo.c.

◆ LUAI_TRY

#define LUAI_TRY (   L,
  c,
 
)    if (setjmp((c)->b) == 0) { a }

Definition at line 74 of file ldo.c.

◆ next_ci

#define next_ci (   L)    (L->ci->next ? L->ci->next : luaE_extendCI(L))

Definition at line 473 of file ldo.c.

Function Documentation

◆ ccall()

static void ccall ( lua_State L,
StkId  func,
int  nResults,
int  inc 
)
static

Definition at line 570 of file ldo.c.

◆ checkmode()

static void checkmode ( lua_State L,
const char *  mode,
const char *  x 
)
static

Definition at line 918 of file ldo.c.

◆ closepaux()

static void closepaux ( lua_State L,
void *  ud 
)
static

Definition at line 853 of file ldo.c.

◆ correctstack()

static void correctstack ( lua_State L,
StkId  oldstack,
StkId  newstack 
)
static

Definition at line 160 of file ldo.c.

◆ f_parser()

static void f_parser ( lua_State L,
void *  ud 
)
static

Definition at line 927 of file ldo.c.

◆ findpcall()

static CallInfo* findpcall ( lua_State L)
static

Definition at line 695 of file ldo.c.

◆ finishCcall()

static void finishCcall ( lua_State L,
CallInfo ci 
)
static

Definition at line 649 of file ldo.c.

◆ finishpcallk()

static int finishpcallk ( lua_State L,
CallInfo ci 
)
static

Definition at line 615 of file ldo.c.

◆ lua_isyieldable()

LUA_API int lua_isyieldable ( lua_State L)

Definition at line 805 of file ldo.c.

◆ lua_resume()

LUA_API int lua_resume ( lua_State L,
lua_State from,
int  nargs,
int *  nresults 
)

Definition at line 773 of file ldo.c.

◆ lua_yieldk()

LUA_API int lua_yieldk ( lua_State L,
int  nresults,
lua_KContext  ctx,
lua_KFunction  k 
)

Definition at line 810 of file ldo.c.

◆ luaD_call()

void luaD_call ( lua_State L,
StkId  func,
int  nResults 
)

Definition at line 586 of file ldo.c.

◆ luaD_callnoyield()

void luaD_callnoyield ( lua_State L,
StkId  func,
int  nResults 
)

Definition at line 594 of file ldo.c.

◆ luaD_closeprotected()

int luaD_closeprotected ( lua_State L,
ptrdiff_t  level,
int  status 
)

Definition at line 863 of file ldo.c.

◆ luaD_growstack()

int luaD_growstack ( lua_State L,
int  n,
int  raiseerror 
)

Definition at line 219 of file ldo.c.

◆ luaD_hook()

void luaD_hook ( lua_State L,
int  event,
int  line,
int  ftransfer,
int  ntransfer 
)

Definition at line 306 of file ldo.c.

◆ luaD_hookcall()

void luaD_hookcall ( lua_State L,
CallInfo ci 
)

Definition at line 347 of file ldo.c.

◆ luaD_inctop()

void luaD_inctop ( lua_State L)

Definition at line 293 of file ldo.c.

◆ luaD_pcall()

int luaD_pcall ( lua_State L,
Pfunc  func,
void *  u,
ptrdiff_t  old_top,
ptrdiff_t  ef 
)

Definition at line 885 of file ldo.c.

◆ luaD_poscall()

void luaD_poscall ( lua_State L,
CallInfo ci,
int  nres 
)

Definition at line 459 of file ldo.c.

◆ luaD_precall()

CallInfo* luaD_precall ( lua_State L,
StkId  func,
int  nresults 
)

Definition at line 508 of file ldo.c.

◆ luaD_pretailcall()

void luaD_pretailcall ( lua_State L,
CallInfo ci,
StkId  func,
int  narg1 
)

Definition at line 481 of file ldo.c.

◆ luaD_protectedparser()

int luaD_protectedparser ( lua_State L,
ZIO z,
const char *  name,
const char *  mode 
)

Definition at line 944 of file ldo.c.

◆ luaD_rawrunprotected()

int luaD_rawrunprotected ( lua_State L,
Pfunc  f,
void *  ud 
)

Definition at line 138 of file ldo.c.

◆ luaD_reallocstack()

int luaD_reallocstack ( lua_State L,
int  newsize,
int  raiseerror 
)

Definition at line 191 of file ldo.c.

◆ luaD_seterrorobj()

void luaD_seterrorobj ( lua_State L,
int  errcode,
StkId  oldtop 
)

Definition at line 91 of file ldo.c.

◆ luaD_shrinkstack()

void luaD_shrinkstack ( lua_State L)

Definition at line 274 of file ldo.c.

◆ luaD_throw()

l_noret luaD_throw ( lua_State L,
int  errcode 
)

Definition at line 115 of file ldo.c.

◆ luaD_tryfuncTM()

void luaD_tryfuncTM ( lua_State L,
StkId  func 
)

Definition at line 390 of file ldo.c.

◆ moveresults()

static void moveresults ( lua_State L,
StkId  res,
int  nres,
int  wanted 
)
static

Definition at line 408 of file ldo.c.

◆ precover()

static int precover ( lua_State L,
int  status 
)
static

Definition at line 762 of file ldo.c.

◆ resume()

static void resume ( lua_State L,
void *  ud 
)
static

Definition at line 726 of file ldo.c.

◆ resume_error()

static int resume_error ( lua_State L,
const char *  msg,
int  narg 
)
static

Definition at line 710 of file ldo.c.

◆ rethook()

static void rethook ( lua_State L,
CallInfo ci,
int  nres 
)
static

Definition at line 365 of file ldo.c.

◆ stackinuse()

static int stackinuse ( lua_State L)
static

Definition at line 250 of file ldo.c.

◆ unroll()

static void unroll ( lua_State L,
void *  ud 
)
static

Definition at line 677 of file ldo.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49