unroff/src/table.h

22 lines
411 B
C
Raw Normal View History

2023-02-13 08:45:50 -05:00
/* $Revision: 1.5 $
*/
typedef struct _elem {
char *data;
int size;
int obj;
unsigned long flags;
struct _elem *next;
} Elem;
typedef struct _table {
Elem **data;
int size;
} Table;
Table *table_new(int);
void table_delete(Table *);
void table_store(Table *, char *, int, Object, unsigned long);
void table_remove(Table *, char *, int);
Elem *table_lookup(Table *, char *, int);