rpm  4.5
Data Structures | Macros | Typedefs
llimits.h File Reference
#include <limits.h>
#include <stddef.h>
#include "lua.h"
Include dependency graph for llimits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  L_Umaxalign
 

Macros

#define BITS_INT   16
 
#define MAX_LUMEM   ULONG_MAX
 
#define MAX_SIZET   ((size_t)(~(size_t)0)-2)
 
#define MAX_INT   (INT_MAX-2) /* maximum value of an int (-2 for safety) */
 
#define IntPoint(p)   ((lu_hash)(p))
 
#define lua_assert(c)   /* empty */
 
#define check_exp(c, e)   (e)
 
#define UNUSED(x)   ((void)(x)) /* to avoid warnings */
 
#define cast(t, exp)   ((t)(exp))
 
#define LUA_MAXCALLS   4096
 
#define LUA_MAXCCALLS   200
 
#define LUA_MAXCSTACK   2048
 
#define MAXSTACK   250
 
#define MAXVARS   200 /* arbitrary limit (<MAXSTACK) */
 
#define MAXUPVALUES   32
 
#define MAXPARAMS   100 /* arbitrary limit (<MAXLOCALS) */
 
#define MINSTRTABSIZE   32
 
#define LUA_MINBUFFER   32
 
#define LUA_MAXPARSERLEVEL   200
 

Typedefs

typedef unsigned int lu_hash
 
typedef int ls_hash
 
typedef unsigned long lu_mem
 
typedef long ls_nstr
 
typedef unsigned char lu_byte
 
typedef double l_uacNumber
 
typedef unsigned long Instruction
 

Macro Definition Documentation

#define BITS_INT   16

Definition at line 24 of file llimits.h.

#define cast (   t,
  exp 
)    ((t)(exp))
#define check_exp (   c,
 
)    (e)

Definition at line 98 of file llimits.h.

#define IntPoint (   p)    ((lu_hash)(p))

Definition at line 72 of file llimits.h.

#define lua_assert (   c)    /* empty */
#define LUA_MAXCALLS   4096

Definition at line 122 of file llimits.h.

Referenced by luaD_growCI(), and restore_stack_limit().

#define LUA_MAXCCALLS   200

Definition at line 132 of file llimits.h.

Referenced by luaD_call().

#define LUA_MAXCSTACK   2048

Definition at line 138 of file llimits.h.

Referenced by lua_checkstack().

#define LUA_MAXPARSERLEVEL   200

Definition at line 181 of file llimits.h.

#define LUA_MINBUFFER   32

Definition at line 172 of file llimits.h.

Referenced by checkSizes(), and luaZ_openspace().

#define MAX_INT   (INT_MAX-2) /* maximum value of an int (-2 for safety) */
#define MAX_LUMEM   ULONG_MAX

Definition at line 52 of file llimits.h.

Referenced by lua_setgcthreshold().

#define MAX_SIZET   ((size_t)(~(size_t)0)-2)

Definition at line 62 of file llimits.h.

Referenced by luaM_realloc(), and luaV_concat().

#define MAXPARAMS   100 /* arbitrary limit (<MAXLOCALS) */

Definition at line 160 of file llimits.h.

Referenced by code_params().

#define MAXSTACK   250

Definition at line 143 of file llimits.h.

Referenced by checkRK(), freereg(), kname(), luaG_symbexec(), luaK_checkstack(), luaK_exp2RK(), and precheck().

#define MAXUPVALUES   32

Definition at line 154 of file llimits.h.

Referenced by indexupvalue().

#define MAXVARS   200 /* arbitrary limit (<MAXSTACK) */

Definition at line 148 of file llimits.h.

Referenced by new_localvar().

#define MINSTRTABSIZE   32

Definition at line 166 of file llimits.h.

Referenced by checkSizes(), and f_luaopen().

#define UNUSED (   x)    ((void)(x)) /* to avoid warnings */

Definition at line 103 of file llimits.h.

Referenced by callallgcTM(), default_panic(), f_luaopen(), and lua_typename().

Typedef Documentation

typedef unsigned long Instruction

Definition at line 117 of file llimits.h.

typedef double l_uacNumber

Definition at line 86 of file llimits.h.

typedef int ls_hash

Definition at line 46 of file llimits.h.

typedef long ls_nstr

Definition at line 56 of file llimits.h.

typedef unsigned char lu_byte

Definition at line 59 of file llimits.h.

typedef unsigned int lu_hash

Definition at line 44 of file llimits.h.

typedef unsigned long lu_mem

Definition at line 50 of file llimits.h.