From 808d9b140ee11405a4c034fed237a4070710e266 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Wed, 28 Jun 2000 16:37:24 +0000 Subject: [PATCH] Marc-Andre Lemburg : Exports the C API of the new ucnhash module. By Bill Tutt. --- Include/ucnhash.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Include/ucnhash.h diff --git a/Include/ucnhash.h b/Include/ucnhash.h new file mode 100644 index 00000000000..f27a16fbc98 --- /dev/null +++ b/Include/ucnhash.h @@ -0,0 +1,20 @@ + +#include +#include + +/* --- 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; +