first step in implementing internal methods.

This commit is contained in:
Roberto Ierusalimschy
1997-02-26 14:38:41 -03:00
parent bbf1b3060a
commit 131d66efd2
10 changed files with 441 additions and 236 deletions

19
hash.h
View File

@@ -1,7 +1,7 @@
/*
** hash.h
** hash manager for lua
** $Id: hash.h,v 2.11 1996/03/08 12:04:04 roberto Exp roberto $
** $Id: hash.h,v 2.12 1996/05/06 14:30:27 roberto Exp roberto $
*/
#ifndef hash_h
@@ -10,19 +10,18 @@
#include "types.h"
#include "opcode.h"
typedef struct node
{
typedef struct node {
Object ref;
Object val;
} Node;
typedef struct Hash
{
struct Hash *next;
Node *node;
int nhash;
int nuse;
char mark;
typedef struct Hash {
struct Hash *next;
Node *node;
int nhash;
int nuse;
int htag;
char mark;
} Hash;