summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/umath/struct_ufunc_test.c.src13
1 files changed, 12 insertions, 1 deletions
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. */