Skip to content

Commit 808d9b1

Browse files
committed
Marc-Andre Lemburg <[email protected]>:
Exports the C API of the new ucnhash module. By Bill Tutt.
1 parent ec105d0 commit 808d9b1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Include/ucnhash.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
#include <Python.h>
3+
#include <stdlib.h>
4+
5+
/* --- C API ----------------------------------------------------*/
6+
/* C API for usage by other Python modules */
7+
typedef struct _Py_UCNHashAPI
8+
{
9+
unsigned long cKeys;
10+
unsigned long cchMax;
11+
unsigned long (*hash)(const char *key, unsigned int cch);
12+
const void *(*getValue)(unsigned long iKey);
13+
} _Py_UCNHashAPI;
14+
15+
typedef struct
16+
{
17+
const char *pszUCN;
18+
unsigned int uiValue;
19+
} _Py_UnicodeCharacterName;
20+

0 commit comments

Comments
 (0)