1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
Dictionary interface

Copied from Perforce
 Change: 20751
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Pekka Pirinen 1999-04-27 12:18:20 +01:00
parent 7c4ee17eea
commit 3bb54d8917

27
mps/src/table.h Normal file
View file

@ -0,0 +1,27 @@
/* impl.h.table: Interface for a dictionary
* Copyright (C) 1997, 1999 Harlequin Group plc. All rights reserved.
*
* $HopeName$
*/
#ifndef table_h
#define table_h
#include "mpmtypes.h"
#include <stddef.h>
typedef struct TableStruct *Table;
extern Res TableCreate(Table *tableReturn, size_t length);
extern void TableDestroy(Table table);
extern Res TableDefine(Table table, Word key, void *value);
extern Res TableRedefine(Table table, Word key, void *value);
extern void *TableLookup(Table table, Word key);
extern void *TableSlowLookup(Table table, Word key);
extern Res TableRemove(Table table, Word key);
extern size_t TableCount(Table table);
extern void TableApply(Table table, void(*fun)(Word key, void *value));
#endif /* table_h */