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:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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 checkmode (lua_State *L, const char *mode, const char *x)
 
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, int status)
 
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_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)
 
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 recover (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 StkId rethook (lua_State *L, CallInfo *ci, StkId firstres, int nres)
 
static int stackinuse (lua_State *L)
 
static void unroll (lua_State *L, void *ud)
 

Macro Definition Documentation

#define ERRORSTACKSIZE   (LUAI_MAXSTACK + 200)

Definition at line 182 of file ldo.c.

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

Definition at line 38 of file ldo.c.

#define ldo_c

Definition at line 7 of file ldo.c.

#define LUA_CORE

Definition at line 8 of file ldo.c.

#define luai_jmpbuf   jmp_buf

Definition at line 75 of file ldo.c.

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

Definition at line 73 of file ldo.c.

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

Definition at line 74 of file ldo.c.

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

Definition at line 424 of file ldo.c.

Function Documentation

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

Definition at line 777 of file ldo.c.

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

Definition at line 164 of file ldo.c.

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

Definition at line 786 of file ldo.c.

static CallInfo* findpcall ( lua_State L)
static

Definition at line 583 of file ldo.c.

static void finishCcall ( lua_State L,
int  status 
)
static

Definition at line 534 of file ldo.c.

LUA_API int lua_isyieldable ( lua_State L)

Definition at line 701 of file ldo.c.

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

Definition at line 661 of file ldo.c.

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

Definition at line 706 of file ldo.c.

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

Definition at line 457 of file ldo.c.

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

Definition at line 519 of file ldo.c.

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

Definition at line 209 of file ldo.c.

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

Definition at line 274 of file ldo.c.

void luaD_hookcall ( lua_State L,
CallInfo ci 
)

Definition at line 313 of file ldo.c.

void luaD_inctop ( lua_State L)

Definition at line 261 of file ldo.c.

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

Definition at line 742 of file ldo.c.

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

Definition at line 414 of file ldo.c.

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

Definition at line 432 of file ldo.c.

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

Definition at line 803 of file ldo.c.

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

Definition at line 141 of file ldo.c.

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

Definition at line 185 of file ldo.c.

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

Definition at line 91 of file ldo.c.

void luaD_shrinkstack ( lua_State L)

Definition at line 246 of file ldo.c.

l_noret luaD_throw ( lua_State L,
int  errcode 
)

Definition at line 114 of file ldo.c.

void luaD_tryfuncTM ( lua_State L,
StkId  func 
)

Definition at line 354 of file ldo.c.

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

Definition at line 372 of file ldo.c.

static int recover ( lua_State L,
int  status 
)
static

Definition at line 598 of file ldo.c.

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

Definition at line 636 of file ldo.c.

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

Definition at line 620 of file ldo.c.

static StkId rethook ( lua_State L,
CallInfo ci,
StkId  firstres,
int  nres 
)
static

Definition at line 326 of file ldo.c.

static int stackinuse ( lua_State L)
static

Definition at line 235 of file ldo.c.

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

Definition at line 564 of file ldo.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48