mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			459 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			459 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;
 | 
						|
    Py_UCS4 value;
 | 
						|
} _Py_UnicodeCharacterName;
 | 
						|
 |