From: Marc-André Lemburg Date: Wed, 28 Jun 2000 16:37:24 +0000 (+0000) Subject: Marc-Andre Lemburg : X-Git-Tag: v2.0b1~1376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=808d9b140ee11405a4c034fed237a4070710e266;p=python Marc-Andre Lemburg : Exports the C API of the new ucnhash module. By Bill Tutt. --- diff --git a/Include/ucnhash.h b/Include/ucnhash.h new file mode 100644 index 0000000000..f27a16fbc9 --- /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; +