aboutsummaryrefslogtreecommitdiff
path: root/table.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-21 15:55:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-03-21 15:55:02 -0300
commit7a35f23c1688e3e24781c780e121bbdc0e4b53e1 (patch)
treeb3de8cfb741848e579385f4751f95fdc37d3a5d3 /table.c
parent9284742a11b92dfe4ef011b963240cfa588515cd (diff)
downloadlua-7a35f23c1688e3e24781c780e121bbdc0e4b53e1.tar.gz
lua-7a35f23c1688e3e24781c780e121bbdc0e4b53e1.tar.bz2
lua-7a35f23c1688e3e24781c780e121bbdc0e4b53e1.zip
a simplification about memory error messages.
Diffstat (limited to 'table.c')
-rw-r--r--table.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/table.c b/table.c
index 3920ed19..6c77d2e9 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 2.49 1996/03/14 15:57:19 roberto Exp roberto $"; 6char *rcs_table="$Id: table.c,v 2.50 1996/03/21 16:31:32 roberto Exp roberto $";
7 7
8#include "mem.h" 8#include "mem.h"
9#include "opcode.h" 9#include "opcode.h"
@@ -75,12 +75,11 @@ void luaI_initsymbol (void)
75*/ 75*/
76void luaI_initconstant (void) 76void luaI_initconstant (void)
77{ 77{
78 int i;
79 lua_maxconstant = BUFFER_BLOCK; 78 lua_maxconstant = BUFFER_BLOCK;
80 lua_constant = newvector(lua_maxconstant, TaggedString *); 79 lua_constant = newvector(lua_maxconstant, TaggedString *);
81 /* pre-register mem error messages, to avoid loop when error arises */ 80 /* pre-register mem error messages, to avoid loop when error arises */
82 for (i=0; i<NUMERRMSG; i++) 81 luaI_findconstantbyname(tableEM);
83 luaI_findconstantbyname(luaI_memerrormsg[i]); 82 luaI_findconstantbyname(memEM);
84} 83}
85 84
86 85