Marc-Andre Lemburg <mal@lemburg.com>:

Exports the C API of the new ucnhash module.

By Bill Tutt.
This commit is contained in:
Marc-André Lemburg 2000-06-28 16:37:24 +00:00
parent ec105d0993
commit 808d9b140e
1 changed files with 20 additions and 0 deletions

20
Include/ucnhash.h Normal file
View File

@ -0,0 +1,20 @@
#include <Python.h>
#include <stdlib.h>
/* --- C API ----------------------------------------------------*/
/* C API for usage by other Python modules */
typedef struct _Py_UCNHashAPI
{
unsigned long cKeys;
unsigned long cchMax;
unsigned long (*hash)(const char *key, unsigned int cch);
const void *(*getValue)(unsigned long iKey);
} _Py_UCNHashAPI;
typedef struct
{
const char *pszUCN;
unsigned int uiValue;
} _Py_UnicodeCharacterName;