[Python-checkins] CVS: python/dist/src/Include ucnhash.h,NONE,1.1
M.-A. Lemburg
python-dev@python.org
Wed, 28 Jun 2000 09:37:27 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv20217/Include
Added Files:
ucnhash.h
Log Message:
Marc-Andre Lemburg <mal@lemburg.com>:
Exports the C API of the new ucnhash module.
By Bill Tutt.
--- NEW FILE ---
#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;