summaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'table.c')
-rw-r--r--table.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/table.c b/table.c
index b4cf8c6e..a59e501f 100644
--- a/table.c
+++ b/table.c
@@ -3,7 +3,7 @@
3** Module to control static tables 3** Module to control static tables
4*/ 4*/
5 5
6char *rcs_table="$Id: table.c,v 1.2 1993/12/22 21:15:16 roberto Exp celes $"; 6char *rcs_table="$Id: table.c,v 1.3 1994/03/28 15:15:59 celes Exp celes $";
7 7
8#include <stdlib.h> 8#include <stdlib.h>
9#include <string.h> 9#include <string.h>
@@ -52,10 +52,18 @@ static struct List *searchlist=&o0;
52#define MAXCONSTANT 256 52#define MAXCONSTANT 256
53#endif 53#endif
54/* pre-defined constants need garbage collection extra byte */ 54/* pre-defined constants need garbage collection extra byte */
55static char *constantbuffer[MAXCONSTANT] = {" mark"+1," nil"+1, 55static char tm[] = " mark";
56 " number"+1, " string"+1, 56static char ti[] = " nil";
57 " table"+1, " function"+1, 57static char tn[] = " number";
58 " cfunction"+1, " userdata"+1 58static char ts[] = " string";
59static char tt[] = " table";
60static char tf[] = " function";
61static char tc[] = " cfunction";
62static char tu[] = " userdata";
63static char *constantbuffer[MAXCONSTANT] = {tm+1, ti+1,
64 tn+1, ts+1,
65 tt+1, tf+1,
66 tc+1, tu+1
59 }; 67 };
60char **lua_constant = constantbuffer; 68char **lua_constant = constantbuffer;
61Word lua_nconstant=T_USERDATA+1; 69Word lua_nconstant=T_USERDATA+1;