new definitions for closure structures

This commit is contained in:
Roberto Ierusalimschy
2001-10-02 13:45:03 -03:00
parent 6f936bc793
commit 15462edb0f
11 changed files with 137 additions and 156 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: llimits.h,v 1.31 2001/08/27 15:16:28 roberto Exp $
** $Id: llimits.h,v 1.32 2001/09/07 17:39:10 roberto Exp $
** Limits, basic types, and some other `installation-dependent' definitions
** See Copyright Notice in lua.h
*/
@@ -51,9 +51,6 @@ typedef unsigned long lu_mem;
/* an integer big enough to count the number of strings in use */
typedef long ls_nstr;
/* a bitmap with one bit for each upvalue used by a function */
typedef unsigned long ls_bitup;
/* chars used as small naturals (so that `char' is reserved for characteres) */
typedef unsigned char lu_byte;
@@ -109,9 +106,9 @@ typedef unsigned long Instruction;
#endif
/* maximum number of upvalues */
/* maximum number of upvalues per function */
#ifndef MAXUPVALUES
#define MAXUPVALUES (sizeof(ls_bitup)*CHAR_BIT)
#define MAXUPVALUES 32
#endif