mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
808d9b140e
Exports the C API of the new ucnhash module. By Bill Tutt.
21 lines
466 B
C
21 lines
466 B
C
|
|
#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;
|
|
|