numpy.f2py.cfuncs (version <module 'numpy.f2py.__version__' from '/usr/lib/python2.6/dist-packages/numpy/f2py/__version__.pyc'>)
index
/usr/lib/python2.6/dist-packages/numpy/f2py/cfuncs.py

C declarations, CPP macros, and C functions for f2py2e.
Only required declarations/macros/functions will be used.
 
Copyright 1999,2000 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@ioc.ee>
Permission to use, modify, and distribute this software is given under the
terms of the NumPy License.
 
NO WARRANTY IS EXPRESSED OR IMPLIED.  USE AT YOUR OWN RISK.
$Date: 2005/05/06 11:42:34 $
Pearu Peterson

 
Modules
       
numpy.f2py.__version__
copy
sys
types

 
Functions
       
append_needs(need, flag=1)
buildcfuncs()
errmess = write(...)
write(str) -> None.  Write string str to file.
 
Note that due to buffering, flush() or close() may be needed before
the file on disk reflects the data written.
get_needs()

 
Data
        __file__ = '/usr/lib/python2.6/dist-packages/numpy/f2py/cfuncs.pyc'
__name__ = 'numpy.f2py.cfuncs'
__package__ = 'numpy.f2py'
callbacks = {'callbacks': '/*need_callbacks*/'}
cfuncs = {'calcarrindex': 'static int calcarrindex(int *i,PyArrayObject *ar...[k]); /* assuming contiguous arr */\n\treturn ii;\n}', 'calcarrindextr': 'static int calcarrindextr(int *i,PyArrayObject *...-1]); /* assuming contiguous arr */\n\treturn ii;\n}', 'cfuncs': '/*need_cfuncs*/', 'char_from_pyobj': 'static int char_from_pyobj(char* v,PyObject *obj...)) {\n\t\t*v = (char)i;\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n', 'complex_double_from_pyobj': 'static int complex_double_from_pyobj(complex_dou...\n\t\tPyErr_SetString(err,errmess);\n\t}\n\treturn 0;\n}\n', 'complex_float_from_pyobj': 'static int complex_float_from_pyobj(complex_floa...*v).i = (float)cd.i;\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n', 'complex_long_double_from_pyobj': 'static int complex_long_double_from_pyobj(comple...= (long_double)cd.i;\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n', 'create_cb_arglist': 'static int create_cb_arglist(PyObject* fun,PyTup...String(#modulename#_error,errmess);\n\treturn 0;\n}\n', 'double_from_pyobj': 'static int double_from_pyobj(double* v,PyObject ...\n\t\tPyErr_SetString(err,errmess);\n\t}\n\treturn 0;\n}\n', 'float_from_pyobj': 'static int float_from_pyobj(float* v,PyObject *o...) {\n\t\t*v = (float)d;\n\t\treturn 1;\n\t}\n\treturn 0;\n}\n', ...}
commonhooks = {'commonhooks': '/*need_commonhooks*/', 'initcommonhooks': '/*need_initcommonhooks*/'}
cppmacros = {'ARRSIZE': '#define ARRSIZE(dims,rank) (_PyArray_multiply_list(dims,rank))', 'CFUNCSMESS': '#ifdef DEBUGCFUNCS\n#define CFUNCSMESS(mess) fpri...MESS(mess)\n#define CFUNCSMESSPY(mess,obj)\n#endif\n', 'CHECKARRAY': '#define CHECKARRAY(check,tcheck,name) \\\n\tif (!(c...iled for "name);\\\n\t\t/*goto capi_fail;*/\\\n\t} else ', 'CHECKGENERIC': '#define CHECKGENERIC(check,tcheck,name) \\\n\tif (!...iled for "name);\\\n\t\t/*goto capi_fail;*/\\\n\t} else ', 'CHECKSCALAR': '#define CHECKSCALAR(check,tcheck,name,show,var)\\...rror,errstring);\\\n\t\t/*goto capi_fail;*/\\\n\t} else ', 'CHECKSTRING': '#define CHECKSTRING(check,tcheck,name,show,var)\\...ror, errstring);\\\n\t\t/*goto capi_fail;*/\\\n\t} else ', 'FAILNULL': '\\\n#define FAILNULL(p) do { ... \\\n} while (0)\n', 'F_FUNC': '#if defined(PREPEND_FORTRAN)\n#if defined(NO_APPE...\n#else\n#define F_FUNC_US(f,F) F_FUNC(f,F)\n#endif\n', 'F_MODFUNC': '#if defined(F90MOD2CCONV1) /*E.g. Compaq Fortran...efine F_MODFUNC(m,f) (*(f2pymodstruct##m##.##f))\n', 'F_WRAPPEDFUNC': '#if defined(PREPEND_FORTRAN)\n#if defined(NO_APPE... F_WRAPPEDFUNC_US(f,F) F_WRAPPEDFUNC(f,F)\n#endif\n', ...}
f2py_version = '2'
f90modhooks = {'f90modhooks': '/*need_f90modhooks*/', 'initf90modhooksdynamic': '/*initf90modhooksdynamic*/', 'initf90modhooksstatic': '/*initf90modhooksstatic*/'}
includes = {'Python.h': '#include "Python.h"', 'arrayobject.h': '#include "fortranobject.h"', 'includes': '/*need_includes*/'}
includes0 = {'includes0': '/*need_includes0*/', 'math.h': '#include <math.h>', 'setjmp.h': '#include <setjmp.h>', 'string.h': '#include <string.h>'}
needs = {'GETSTRFROMPYTUPLE': ['STRINGCOPYN', 'PRINTPYOBJERR'], 'MEMCOPY': ['string.h', 'FAILNULL'], 'STRINGCOPY': ['string.h', 'FAILNULL'], 'STRINGCOPYN': ['string.h', 'FAILNULL'], 'TRYCOMPLEXPYARRAYTEMPLATE': ['PRINTPYOBJERR'], 'TRYPYARRAYTEMPLATE': ['PRINTPYOBJERR'], 'arrayobject.h': ['Python.h'], 'char_from_pyobj': ['int_from_pyobj'], 'complex_double_from_pyobj': ['complex_double'], 'complex_float_from_pyobj': ['complex_float', 'complex_double_from_pyobj'], ...}
outneeds = {'callbacks': [], 'cfuncs': [], 'commonhooks': [], 'cppmacros': [], 'f90modhooks': [], 'includes': [], 'includes0': [], 'typedefs': [], 'typedefs_generated': [], 'userincludes': []}
typedefs = {'complex_double': 'typedef struct {double r,i;} complex_double;', 'complex_float': 'typedef struct {float r,i;} complex_float;', 'complex_long_double': 'typedef struct {long double r,i;} complex_long_double;', 'insinged_long_long': '#ifdef _WIN32\ntypedef __uint64 long_long;\n#else\n...ef unsigned long long unsigned_long_long;\n#endif\n', 'long_double': '#ifndef _LONG_DOUBLE\ntypedef long double long_double;\n#endif\n', 'long_long': '#ifdef _WIN32\ntypedef __int64 long_long;\n#else\nt...ef unsigned long long unsigned_long_long;\n#endif\n', 'signed_char': 'typedef signed char signed_char;', 'string': 'typedef char * string;', 'typedefs': '/*need_typedefs*/', 'unsigned_char': 'typedef unsigned char unsigned_char;', ...}
typedefs_generated = {'typedefs_generated': '/*need_typedefs_generated*/'}
userincludes = {'userincludes': '/*need_userincludes*/'}