aboutsummaryrefslogtreecommitdiff
path: root/opcode.h
diff options
context:
space:
mode:
authorWaldemar Celes <celes@tecgraf.puc-rio.br>1994-07-19 18:27:18 -0300
committerWaldemar Celes <celes@tecgraf.puc-rio.br>1994-07-19 18:27:18 -0300
commit493d718b7fe0f1075072a44d7946e38ca7d773d3 (patch)
tree3239639a562d742002342166cce005f7d70cc503 /opcode.h
parent1c749a3059051c52c3bc24540e27b0ccbcfff273 (diff)
downloadlua-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 'opcode.h')
-rw-r--r--opcode.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/opcode.h b/opcode.h
index 38202f6e..853efd13 100644
--- a/opcode.h
+++ b/opcode.h
@@ -1,6 +1,6 @@
1/* 1/*
2** TeCGraf - PUC-Rio 2** TeCGraf - PUC-Rio
3** $Id: opcode.h,v 1.4 1994/04/13 21:37:20 celes Exp celes $ 3** $Id: opcode.h,v 2.1 1994/04/20 22:07:57 celes Exp celes $
4*/ 4*/
5 5
6#ifndef opcode_h 6#ifndef opcode_h
@@ -20,6 +20,8 @@ typedef unsigned char Byte;
20 20
21typedef unsigned short Word; 21typedef unsigned short Word;
22 22
23typedef signed long Long;
24
23typedef union 25typedef union
24{ 26{
25 struct {char c1; char c2;} m; 27 struct {char c1; char c2;} m;
@@ -116,7 +118,6 @@ typedef struct Object
116 118
117typedef struct 119typedef struct
118{ 120{
119 char *name;
120 Object object; 121 Object object;
121} Symbol; 122} Symbol;
122 123
@@ -130,7 +131,6 @@ typedef struct
130#define uvalue(o) ((o)->value.u) 131#define uvalue(o) ((o)->value.u)
131 132
132/* Macros to access symbol table */ 133/* Macros to access symbol table */
133#define s_name(i) (lua_table[i].name)
134#define s_object(i) (lua_table[i].object) 134#define s_object(i) (lua_table[i].object)
135#define s_tag(i) (tag(&s_object(i))) 135#define s_tag(i) (tag(&s_object(i)))
136#define s_nvalue(i) (nvalue(&s_object(i))) 136#define s_nvalue(i) (nvalue(&s_object(i)))