diff options
author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-07-19 18:27:18 -0300 |
---|---|---|
committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1994-07-19 18:27:18 -0300 |
commit | 493d718b7fe0f1075072a44d7946e38ca7d773d3 (patch) | |
tree | 3239639a562d742002342166cce005f7d70cc503 /table.h | |
parent | 1c749a3059051c52c3bc24540e27b0ccbcfff273 (diff) | |
download | lua-493d718b7fe0f1075072a44d7946e38ca7d773d3.tar.gz lua-493d718b7fe0f1075072a44d7946e38ca7d773d3.tar.bz2 lua-493d718b7fe0f1075072a44d7946e38ca7d773d3.zip |
Uso de arvores binarias para armazenar nomes e realocacao dinamica
de tabelas (pilhas, hashtable, globais, codigo, etc.)
Diffstat (limited to 'table.h')
-rw-r--r-- | table.h | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -1,23 +1,14 @@ | |||
1 | /* | 1 | /* |
2 | ** Module to control static tables | 2 | ** Module to control static tables |
3 | ** TeCGraf - PUC-Rio | 3 | ** TeCGraf - PUC-Rio |
4 | ** $Id: table.h,v 1.2 1993/12/22 21:15:16 roberto Exp celes $ | 4 | ** $Id: table.h,v 2.1 1994/04/20 22:07:57 celes Exp celes $ |
5 | */ | 5 | */ |
6 | 6 | ||
7 | #ifndef table_h | 7 | #ifndef table_h |
8 | #define table_h | 8 | #define table_h |
9 | 9 | ||
10 | extern Symbol *lua_table; | 10 | extern Symbol *lua_table; |
11 | extern Word lua_ntable; | ||
12 | |||
13 | extern char **lua_constant; | 11 | extern char **lua_constant; |
14 | extern Word lua_nconstant; | ||
15 | |||
16 | extern char **lua_string; | ||
17 | extern Word lua_nstring; | ||
18 | |||
19 | extern Hash **lua_array; | ||
20 | extern Word lua_narray; | ||
21 | 12 | ||
22 | extern char *lua_file[]; | 13 | extern char *lua_file[]; |
23 | extern int lua_nfile; | 14 | extern int lua_nfile; |
@@ -26,13 +17,12 @@ extern Word lua_block; | |||
26 | extern Word lua_nentity; | 17 | extern Word lua_nentity; |
27 | 18 | ||
28 | 19 | ||
29 | 20 | void lua_initconstant (void); | |
30 | int lua_findsymbol (char *s); | 21 | int lua_findsymbol (char *s); |
31 | int lua_findconstant (char *s); | 22 | int lua_findconstant (char *s); |
32 | void lua_travsymbol (void (*fn)(Object *)); | 23 | void lua_travsymbol (void (*fn)(Object *)); |
33 | void lua_markobject (Object *o); | 24 | void lua_markobject (Object *o); |
34 | void lua_pack (void); | 25 | void lua_pack (void); |
35 | void lua_stringcollector (void); | ||
36 | char *lua_createstring (char *s); | 26 | char *lua_createstring (char *s); |
37 | int lua_addfile (char *fn); | 27 | int lua_addfile (char *fn); |
38 | int lua_delfile (void); | 28 | int lua_delfile (void); |