mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 11:21:04 -08:00
This was achieved by partially undoing changelist 24817, including an accidental corruption of eventgen.pl. Copied from Perforce Change: 24877 ServerID: perforce.ravenbrook.com
27 lines
721 B
C
27 lines
721 B
C
/* impl.h.table: Interface for a dictionary
|
|
* Copyright (c) 2001 Ravenbrook Limited.
|
|
*
|
|
* $Id$
|
|
* $HopeName: MMsrc!table.h(trunk.2) $
|
|
*/
|
|
|
|
#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 Bool TableLookup(void **valueReturn, Table table, Word key);
|
|
extern Res TableRemove(Table table, Word key);
|
|
extern size_t TableCount(Table table);
|
|
extern void TableMap(Table table, void(*fun)(Word key, void *value));
|
|
|
|
|
|
#endif /* table_h */
|