mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
Uso de arvores binarias para armazenar nomes e realocacao dinamica
de tabelas (pilhas, hashtable, globais, codigo, etc.)
This commit is contained in:
parent
1c749a3059
commit
493d718b7f
7 changed files with 253 additions and 277 deletions
6
opcode.h
6
opcode.h
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
** TeCGraf - PUC-Rio
|
||||
** $Id: opcode.h,v 1.4 1994/04/13 21:37:20 celes Exp celes $
|
||||
** $Id: opcode.h,v 2.1 1994/04/20 22:07:57 celes Exp celes $
|
||||
*/
|
||||
|
||||
#ifndef opcode_h
|
||||
|
|
@ -20,6 +20,8 @@ typedef unsigned char Byte;
|
|||
|
||||
typedef unsigned short Word;
|
||||
|
||||
typedef signed long Long;
|
||||
|
||||
typedef union
|
||||
{
|
||||
struct {char c1; char c2;} m;
|
||||
|
|
@ -116,7 +118,6 @@ typedef struct Object
|
|||
|
||||
typedef struct
|
||||
{
|
||||
char *name;
|
||||
Object object;
|
||||
} Symbol;
|
||||
|
||||
|
|
@ -130,7 +131,6 @@ typedef struct
|
|||
#define uvalue(o) ((o)->value.u)
|
||||
|
||||
/* Macros to access symbol table */
|
||||
#define s_name(i) (lua_table[i].name)
|
||||
#define s_object(i) (lua_table[i].object)
|
||||
#define s_tag(i) (tag(&s_object(i)))
|
||||
#define s_nvalue(i) (nvalue(&s_object(i)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue