The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/openzfs/module/lua/ldo.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2 ** $Id: ldo.h,v 2.20.1.1 2013/04/12 18:48:47 roberto Exp $
    3 ** Stack and Call structure of Lua
    4 ** See Copyright Notice in lua.h
    5 */
    6 
    7 #ifndef ldo_h
    8 #define ldo_h
    9 
   10 
   11 #include "lobject.h"
   12 #include "lstate.h"
   13 #include "lzio.h"
   14 
   15 
   16 #define luaD_checkstack(L,n)    if (L->stack_last - L->top <= (n)) \
   17                                     luaD_growstack(L, n); else condmovestack(L);
   18 
   19 
   20 #define incr_top(L) {L->top++; luaD_checkstack(L,0);}
   21 
   22 #define savestack(L,p)          ((char *)(p) - (char *)L->stack)
   23 #define restorestack(L,n)       ((TValue *)((char *)L->stack + (n)))
   24 
   25 
   26 /* type of protected functions, to be ran by `runprotected' */
   27 typedef void (*Pfunc) (lua_State *L, void *ud);
   28 
   29 LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
   30                                                   const char *mode);
   31 LUAI_FUNC void luaD_hook (lua_State *L, int event, int line);
   32 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
   33 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults,
   34                                         int allowyield);
   35 LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u,
   36                                         ptrdiff_t oldtop, ptrdiff_t ef);
   37 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
   38 LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize);
   39 LUAI_FUNC void luaD_growstack (lua_State *L, int n);
   40 LUAI_FUNC void luaD_shrinkstack (lua_State *L);
   41 
   42 LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode);
   43 LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud);
   44 
   45 #endif

Cache object: 1cd4a3a8403fdb31e04deed66acbbe20


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.