mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-15 07:41:09 -08:00
New unit
Dictionary interface Copied from Perforce Change: 20751 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
7c4ee17eea
commit
3bb54d8917
1 changed files with 27 additions and 0 deletions
27
mps/src/table.h
Normal file
27
mps/src/table.h
Normal 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 */
|
||||
Loading…
Add table
Add a link
Reference in a new issue