Index: generic/nsfInt.h =================================================================== diff -u -r6c041dc5e75dfb3fc2c119ca2cfdc1824968f293 -rc01b411cdc631fd8e3eea9bf8fea985837a2b4b3 --- generic/nsfInt.h (.../nsfInt.h) (revision 6c041dc5e75dfb3fc2c119ca2cfdc1824968f293) +++ generic/nsfInt.h (.../nsfInt.h) (revision c01b411cdc631fd8e3eea9bf8fea985837a2b4b3) @@ -1220,17 +1220,34 @@ void NsfStringIncrFree(NsfStringIncrStruct *iss) nonnull(1); + /* - * Nsf Enumeration type interface + * Interface for NSF's custom hash tables supporting function + * pointers as keys. + * */ + +typedef void (Nsf_AnyFun)(); + +EXTERN void Nsf_InitFunPtrHashTable(Tcl_HashTable *tablePtr) + nonnull(1); +EXTERN Tcl_HashEntry *Nsf_CreateFunPtrHashEntry(Tcl_HashTable *tablePtr, Nsf_AnyFun *key, int *isNew) + nonnull(1) nonnull(2); +EXTERN Tcl_HashEntry *Nsf_FindFunPtrHashEntry(Tcl_HashTable *tablePtr, Nsf_AnyFun *key) + nonnull(1) nonnull(2); + + +/* + * NSF enumeration-type interface + */ EXTERN void Nsf_EnumerationTypeInit(Tcl_Interp *interp) nonnull(1); EXTERN const char *Nsf_EnumerationTypeGetDomain(Nsf_TypeConverter *converter) nonnull(1); /* - * Nsf Cmd definition interface + * NSF command definitions interface */ EXTERN void Nsf_CmdDefinitionInit(Tcl_Interp *interp) nonnull(1);