]> granicus.if.org Git - python/commitdiff
Marc-Andre Lemburg <mal@lemburg.com>:
authorMarc-André Lemburg <mal@egenix.com>
Wed, 28 Jun 2000 16:37:24 +0000 (16:37 +0000)
committerMarc-André Lemburg <mal@egenix.com>
Wed, 28 Jun 2000 16:37:24 +0000 (16:37 +0000)
Exports the C API of the new ucnhash module.

By Bill Tutt.

Include/ucnhash.h [new file with mode: 0644]

diff --git a/Include/ucnhash.h b/Include/ucnhash.h
new file mode 100644 (file)
index 0000000..f27a16f
--- /dev/null
@@ -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;
+