aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-09-07 14:39:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-09-07 14:39:10 -0300
commitabdbe883a86bbc7fbf1d1bfc50756e1b42fc45b5 (patch)
tree051a7571c8acaf5451b5c9b7d67f1796a345c565 /llimits.h
parent4d0935ec0ffed827aade5594216fae15bed7c6b5 (diff)
downloadlua-abdbe883a86bbc7fbf1d1bfc50756e1b42fc45b5.tar.gz
lua-abdbe883a86bbc7fbf1d1bfc50756e1b42fc45b5.tar.bz2
lua-abdbe883a86bbc7fbf1d1bfc50756e1b42fc45b5.zip
first implementation of unrestricted static scoping
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/llimits.h b/llimits.h
index dd210f20..40815404 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.30 2001/06/05 20:01:09 roberto Exp roberto $ 2** $Id: llimits.h,v 1.31 2001/08/27 15:16:28 roberto Exp $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -51,6 +51,9 @@ typedef unsigned long lu_mem;
51/* an integer big enough to count the number of strings in use */ 51/* an integer big enough to count the number of strings in use */
52typedef long ls_nstr; 52typedef long ls_nstr;
53 53
54/* a bitmap with one bit for each upvalue used by a function */
55typedef unsigned long ls_bitup;
56
54 57
55/* chars used as small naturals (so that `char' is reserved for characteres) */ 58/* chars used as small naturals (so that `char' is reserved for characteres) */
56typedef unsigned char lu_byte; 59typedef unsigned char lu_byte;
@@ -108,7 +111,7 @@ typedef unsigned long Instruction;
108 111
109/* maximum number of upvalues */ 112/* maximum number of upvalues */
110#ifndef MAXUPVALUES 113#ifndef MAXUPVALUES
111#define MAXUPVALUES 32 /* arbitrary limit (<MAXSTACK) */ 114#define MAXUPVALUES (sizeof(ls_bitup)*CHAR_BIT)
112#endif 115#endif
113 116
114 117