;ò ³ÝKCc@s¤dkZeiddgƒ\ZZZeideeeƒZdZdZdZ d„Z dZ dk Z d„Z d „Zd „Zgd „ZeieƒƒdS( NstemplatesLib/codegenerators# static ; s† #define (_API ? (*( (*) ) _API[ ]) : (*( (*) ) _FatalApiError)) ss /* W W AAA RRRR N N III N N GGG !!! ** W W A A R R NN N I NN N G G !!! ** W W W AAAAA RRRR N N N I N N N G ! ** W W W A A R R N NN I N NN G GG ** W W A A R R N N III N N GGG !!! ** ** WARNING: This file is program generated by genapi.py. ** ** DO NOT EDIT THIS FILE! Any changes made to this file will be lost! */ #ifndef _ #define _ #ifdef __cplusplus extern "C" { #endif /* Header file for */ #if !defined(__MODULE) /* Extensions constructed from seperate compilation units can access the C-API defined here by defining "_UNIQUE_SYMBOL" to a global name unique to the extension. Doing this circumvents the requirement to import into each compilation unit, but is nevertheless mildly discouraged as "outside the Python norm" and potentially leading to problems. Looking around at "existing Python art", most extension modules are monolithic C files, and likely for good reason. */ #if defined(_UNIQUE_SYMBOL) #define _API _UNIQUE_SYMBOL #endif /* C API address pointer */ #if defined(NO_IMPORT) || defined(NO_IMPORT_ARRAY) extern void **_API; #else #if defined(_UNIQUE_SYMBOL) void **_API; #else static void **_API; #endif #endif #define _import_() \ { \ PyObject *module = PyImport_ImportModule(""); \ if (module != NULL) { \ PyObject *module_dict = PyModule_GetDict(module); \ PyObject *c_api_object = \ PyDict_GetItemString(module_dict, "_C_API"); \ if (c_api_object && PyCObject_Check(c_api_object)) { \ _API = (void **)PyCObject_AsVoidPtr(c_api_object); \ } else { \ PyErr_Format(PyExc_ImportError, \ "Can't get API for module ''"); \ } \ } \ } #define import_() _import_(); if (PyErr_Occurred()) { PyErr_Print(); Py_FatalError(" failed to import... exiting.\n"); } #endif #define _FatalApiError (Py_FatalError("Call to API function without first calling import_() in " __FILE__), NULL) /* Macros defining components of function prototypes */ #ifdef __MODULE /* This section is used when compiling */ static PyObject *_Error; #else /* This section is used in modules that use */ #endif /* Total number of C API pointers */ #define _API_pointers #ifdef __cplusplus } #endif #endif /* !defined(_) */ cCsüt|ƒiƒ}t|ƒ}dddf\}}} d}g} x‹|D]ƒ}|i ƒidƒ\}} }|i ƒ}| i ƒ} |d| } |ttƒ7}| ttƒ7} | i| ƒ|d7}qIWt|ddƒ} | ttƒIJ| SdS(Nsis@s_is.hsw(sopensfiles readliness functionssmkhdrssheader_includessheaderssmacrossprotosspseudossnumsfpsslsrstripssplitsrvalsfunctionsprotosmodulesfnamesPROTOslocalssPSEUDOsappendshdrsHDR_BODY(smodulesqualified_modulesfilesheader_includessnums functionssprotosrvalsmacrossfpssfunctionsfnamespseudosshdrslsheaderssprotos((sR/mnt/gmirror/ports/math/py-numarray/work/numarray-1.5.2/Include/numarray/genapi.pysgenhdrŽs$    sÕ /* W W AAA RRRR N N III N N GGG !!! ** W W A A R R NN N I NN N G G !!! ** W W W AAAAA RRRR N N N I N N N G ! ** W W W A A R R N NN I N NN G GG ** W W A A R R N N III N N GGG !!! ** ** WARNING: This file is program generated by genapi.py. ** ** DO NOT EDIT THIS FILE! Any changes made to this file will be lost! */ #include #define __MODULE static PyObject *_Error; void *_API[] = { }; #if (!defined(METHOD_TABLE_EXISTS)) static PyMethodDef _Methods[] = { {NULL, NULL} /* Sentinel */ }; #endif /* platform independent*/ #ifdef MS_WIN32 __declspec(dllexport) #endif /* boiler plate API init */ void init(void) { PyObject *m = Py_InitModule("", _Methods); PyObject *c_api_object; _Error = PyErr_NewException(".error", NULL, NULL); /* Create a CObject containing the API pointer array's address */ c_api_object = PyCObject_FromVoidPtr((void *)_API, NULL); if (c_api_object != NULL) { /* Create a name for this object in the module's namespace */ PyObject *d = PyModule_GetDict(m); PyDict_SetItemString(d, "_C_API", c_api_object); PyDict_SetItemString(d, "error", _Error); Py_DECREF(c_api_object); } else { return; } ADD_VERSION(m); _init(); /* module customized init */ } cCs)td„|ƒ}di|ƒ}|SdS(NcCsd|S(Ns #include "%s"(sx(sx((sR/mnt/gmirror/ports/math/py-numarray/work/numarray-1.5.2/Include/numarray/genapi.pysáss (smapshdr_listsheaderssjoin(shdr_listsheaders((sR/mnt/gmirror/ports/math/py-numarray/work/numarray-1.5.2/Include/numarray/genapi.pysmkhdrsàscCsTd}xC|D];}|tidtiƒidt|ƒiƒdƒ7}q W|SdS(Nss!/\*.? .?\*.*Local Variables:.*\*/s ( sssfilessfilenamesrescompilesDOTALLssubsopensread(sfilessssfilename((sR/mnt/gmirror/ports/math/py-numarray/work/numarray-1.5.2/Include/numarray/genapi.pys bodystringås 9cCsGt|ƒ}ddi|ƒ}t|ddƒ}|tt ƒIJdS(Ns (void*)s , (void*)s.csw( s bodystrings body_filess body_codesjoinsfpssopensmodulesmodsMOD_BODYslocals(smodulesqualified_modulesfpss body_filess body_codesmod((sR/mnt/gmirror/ports/math/py-numarray/work/numarray-1.5.2/Include/numarray/genapi.pysgenmodïs cCs5d|GHt||||ƒ}t||||ƒdS(Ns'generating new API module '%s' .c & .h(smodulesgenhdrsqualified_modules functionssheader_includessfpssgenmods body_files(smodules functionssheader_includess body_filessqualified_modulesextra_dependenciessfps((sR/mnt/gmirror/ports/math/py-numarray/work/numarray-1.5.2/Include/numarray/genapi.pysmainõs (simps find_modulesfilespathsdescrs load_modulestemplatesPROTOsPSEUDOsHDR_BODYsgenhdrsMOD_BODYsresmkhdrss bodystringsgenmodsmains sugar_dictsglobals(sgenhdrsmkhdrssfilesdescrsPROTOsPSEUDOsimpsMOD_BODYstemplatespathsmainsgenmodsHDR_BODYsres bodystring((sR/mnt/gmirror/ports/math/py-numarray/work/numarray-1.5.2/Include/numarray/genapi.pys?s d =