diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-21 15:55:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-03-21 15:55:02 -0300 |
commit | 7a35f23c1688e3e24781c780e121bbdc0e4b53e1 (patch) | |
tree | b3de8cfb741848e579385f4751f95fdc37d3a5d3 /table.c | |
parent | 9284742a11b92dfe4ef011b963240cfa588515cd (diff) | |
download | lua-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.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -3,7 +3,7 @@ | |||
3 | ** Module to control static tables | 3 | ** Module to control static tables |
4 | */ | 4 | */ |
5 | 5 | ||
6 | char *rcs_table="$Id: table.c,v 2.49 1996/03/14 15:57:19 roberto Exp roberto $"; | 6 | char *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 | */ |
76 | void luaI_initconstant (void) | 76 | void 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 | ||