diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-06-28 16:37:24 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-06-28 16:37:24 (GMT) |
commit | 808d9b140ee11405a4c034fed237a4070710e266 (patch) | |
tree | 6d9ccc1f7fc314780441f9e1a78eeebab2755fbf /Include | |
parent | ec105d099385707db8c58c66a51b28e600501c4c (diff) | |
download | cpython-808d9b140ee11405a4c034fed237a4070710e266.zip cpython-808d9b140ee11405a4c034fed237a4070710e266.tar.gz cpython-808d9b140ee11405a4c034fed237a4070710e266.tar.bz2 |
Marc-Andre Lemburg <mal@lemburg.com>:
Exports the C API of the new ucnhash module.
By Bill Tutt.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/ucnhash.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Include/ucnhash.h b/Include/ucnhash.h new file mode 100644 index 0000000..f27a16f --- /dev/null +++ b/Include/ucnhash.h @@ -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; + |