From 0e4e9300d629c41d2e3a797f381180db11abb141 Mon Sep 17 00:00:00 2001 From: Jay Bourque Date: Fri, 5 Apr 2013 15:08:46 -0500 Subject: Update c-api documentation --- numpy/core/src/umath/struct_ufunc_test.c.src | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'numpy') diff --git a/numpy/core/src/umath/struct_ufunc_test.c.src b/numpy/core/src/umath/struct_ufunc_test.c.src index 5b861a047..774a44487 100644 --- a/numpy/core/src/umath/struct_ufunc_test.c.src +++ b/numpy/core/src/umath/struct_ufunc_test.c.src @@ -4,8 +4,19 @@ #include "numpy/ufuncobject.h" #include "numpy/npy_3kcompat.h" + +/* + * struct_ufunc_test.c + * This is the C code for creating your own + * Numpy ufunc for a structured array dtype. + * + * Details explaining the Python-C API can be found under + * 'Extending and Embedding' and 'Python/C API' at + * docs.python.org . + */ + static PyMethodDef StructUfuncTestMethods[] = { - {0} /* sentinel */ + {NULL, NULL, 0, NULL} }; /* The loop definition must precede the PyMODINIT_FUNC. */ -- cgit v1.2.1