diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-02-05 13:05:30 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-02-05 13:08:33 -0700 |
commit | 6bde534712abc4ab4d15d3a461dd780fdf7eaa5b (patch) | |
tree | 2d97dabbf0409dcb917c18701ae376e6227a3250 /numpy/core | |
parent | f6a2c7ca3a090e0dc107b60b0a5771247a84e032 (diff) | |
download | numpy-6bde534712abc4ab4d15d3a461dd780fdf7eaa5b.tar.gz |
UPD: Various fixes, Remove #define NPY_NO_PREFIX from files in core.
Diffstat (limited to 'numpy/core')
47 files changed, 82 insertions, 81 deletions
diff --git a/numpy/core/blasdot/_dotblas.c b/numpy/core/blasdot/_dotblas.c index 23eb33436..876c5b2ac 100644 --- a/numpy/core/blasdot/_dotblas.c +++ b/numpy/core/blasdot/_dotblas.c @@ -3,7 +3,7 @@ static char module_doc[] = #include "Python.h" #include "npy_config.h" -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #ifndef CBLAS_HEADER #define CBLAS_HEADER "cblas.h" #endif diff --git a/numpy/core/src/multiarray/arrayobject.c b/numpy/core/src/multiarray/arrayobject.c index 51bf6807f..160fd6d3d 100644 --- a/numpy/core/src/multiarray/arrayobject.c +++ b/numpy/core/src/multiarray/arrayobject.c @@ -27,7 +27,7 @@ maintainer email: oliphant.travis@ieee.org /*#include <stdio.h>*/ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/arraytypes.c.src b/numpy/core/src/multiarray/arraytypes.c.src index ff3780e2c..6f1c38c57 100644 --- a/numpy/core/src/multiarray/arraytypes.c.src +++ b/numpy/core/src/multiarray/arraytypes.c.src @@ -5,7 +5,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "numpy/npy_3kcompat.h" #include "numpy/npy_math.h" @@ -1156,8 +1156,8 @@ BOOL_to_@TOTYPE@(npy_bool *ip, @totype@ *op, npy_intp n, /**begin repeat * - * #TOTYPE = CFLOAT,CDOUBLE,CLONGDOUBLE# - * #totype = float, double, longdouble# + * #TOTYPE = CFLOAT, CDOUBLE,CLONGDOUBLE# + * #totype = npy_float, npy_double, npy_longdouble# */ /**begin repeat1 @@ -1431,7 +1431,7 @@ static void * #type = npy_short, npy_ushort, npy_int, npy_uint, * npy_long, npy_ulong, npy_longlong, npy_ulonglong# * #format = "hd", "hu", "d", "u", - * "ld", "lu", LONGLONG_FMT, ULONGLONG_FMT# + * "ld", "lu", NPY_LONGLONG_FMT, NPY_ULONGLONG_FMT# */ static int @fname@_scan(FILE *fp, @type@ *ip, void *NPY_UNUSED(ignore), @@ -1684,8 +1684,8 @@ static void { int i, nn; - b = a + (SIZEOF_@fsize@-1); - nn = SIZEOF_@fsize@ / 2; + b = a + (NPY_SIZEOF_@fsize@-1); + nn = NPY_SIZEOF_@fsize@ / 2; for (i = 0; i < nn; i++) { c = *a; *a++ = *b; @@ -1848,16 +1848,16 @@ static void { int i, nn; - b = a + (SIZEOF_@fsize@ - 1); - nn = SIZEOF_@fsize@ / 2; + b = a + (NPY_SIZEOF_@fsize@ - 1); + nn = NPY_SIZEOF_@fsize@ / 2; for (i = 0; i < nn; i++) { c = *a; *a++ = *b; *b-- = c; } a += nn / 2; - b = a + (SIZEOF_@fsize@ - 1); - nn = SIZEOF_@fsize@ / 2; + b = a + (NPY_SIZEOF_@fsize@ - 1); + nn = NPY_SIZEOF_@fsize@ / 2; for (i = 0; i < nn; i++) { c = *a; *a++ = *b; @@ -3512,7 +3512,7 @@ static void * npy_long, npy_ulong, npy_longlong, npy_ulonglong, * npy_half, npy_float, npy_double, npy_longdouble, * npy_cfloat, npy_cdouble, npy_clongdouble, - * datetime, npy_timedelta# + * npy_datetime, npy_timedelta# */ static int @name@_fasttake(@type@ *dest, @type@ *src, npy_intp *indarray, diff --git a/numpy/core/src/multiarray/boolean_ops.c.src b/numpy/core/src/multiarray/boolean_ops.c.src index dbe5c9899..f3d87cc34 100644 --- a/numpy/core/src/multiarray/boolean_ops.c.src +++ b/numpy/core/src/multiarray/boolean_ops.c.src @@ -19,7 +19,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/buffer.c b/numpy/core/src/multiarray/buffer.c index 3cc58fbab..7f526b380 100644 --- a/numpy/core/src/multiarray/buffer.c +++ b/numpy/core/src/multiarray/buffer.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/calculation.c b/numpy/core/src/multiarray/calculation.c index 0dd619b89..2b6697661 100644 --- a/numpy/core/src/multiarray/calculation.c +++ b/numpy/core/src/multiarray/calculation.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/common.c b/numpy/core/src/multiarray/common.c index 2baa99785..5015a575f 100644 --- a/numpy/core/src/multiarray/common.c +++ b/numpy/core/src/multiarray/common.c @@ -3,7 +3,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/conversion_utils.c b/numpy/core/src/multiarray/conversion_utils.c index fb9d85b87..f9078bfcf 100644 --- a/numpy/core/src/multiarray/conversion_utils.c +++ b/numpy/core/src/multiarray/conversion_utils.c @@ -4,9 +4,9 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/convert.c b/numpy/core/src/multiarray/convert.c index 3d2af45e0..07b052653 100644 --- a/numpy/core/src/multiarray/convert.c +++ b/numpy/core/src/multiarray/convert.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" @@ -143,7 +143,7 @@ PyArray_ToFile(PyArrayObject *self, FILE *fp, char *sep, char *format) NPY_END_THREADS; PyErr_Format(PyExc_IOError, "problem writing element"\ - " %"INTP_FMT" to file", + " %"NPY_INTP_FMT" to file", it->index); Py_DECREF(it); return -1; @@ -217,7 +217,7 @@ PyArray_ToFile(PyArrayObject *self, FILE *fp, char *sep, char *format) #endif if (n < n2) { PyErr_Format(PyExc_IOError, - "problem writing element %"INTP_FMT\ + "problem writing element %"NPY_INTP_FMT\ " to file", it->index); Py_DECREF(strobj); Py_DECREF(it); diff --git a/numpy/core/src/multiarray/convert_datatype.c b/numpy/core/src/multiarray/convert_datatype.c index 7f99ef12a..708814e5b 100644 --- a/numpy/core/src/multiarray/convert_datatype.c +++ b/numpy/core/src/multiarray/convert_datatype.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/ctors.c b/numpy/core/src/multiarray/ctors.c index 59a0472fb..ebc916feb 100644 --- a/numpy/core/src/multiarray/ctors.c +++ b/numpy/core/src/multiarray/ctors.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "numpy/npy_math.h" @@ -3106,7 +3106,8 @@ PyArray_Arange(double start, double stop, double step, int type_num) return (PyObject *)range; } if (!funcs->fill) { - PyErr_SetString(PyExc_ValueError, "no fill-function for data-type."); + PyErr_SetString(PyExc_ValueError, + "no fill-function for data-type."); Py_DECREF(range); return NULL; } @@ -3620,7 +3621,7 @@ PyArray_FromBuffer(PyObject *buf, PyArray_Descr *type, if ((offset < 0) || (offset > ts)) { PyErr_Format(PyExc_ValueError, "offset must be non-negative and no greater than buffer "\ - "length (%" INTP_FMT ")", (npy_intp)ts); + "length (%" NPY_INTP_FMT ")", (npy_intp)ts); Py_DECREF(buf); Py_DECREF(type); return NULL; diff --git a/numpy/core/src/multiarray/datetime.c b/numpy/core/src/multiarray/datetime.c index 9db40bdfd..8f6403e34 100644 --- a/numpy/core/src/multiarray/datetime.c +++ b/numpy/core/src/multiarray/datetime.c @@ -15,7 +15,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/datetime_busday.c b/numpy/core/src/multiarray/datetime_busday.c index 8b6822dcc..5a0078b76 100644 --- a/numpy/core/src/multiarray/datetime_busday.c +++ b/numpy/core/src/multiarray/datetime_busday.c @@ -12,7 +12,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/datetime_busdaycal.c b/numpy/core/src/multiarray/datetime_busdaycal.c index bc1677348..ec24b7f5d 100644 --- a/numpy/core/src/multiarray/datetime_busdaycal.c +++ b/numpy/core/src/multiarray/datetime_busdaycal.c @@ -13,7 +13,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/datetime_strings.c b/numpy/core/src/multiarray/datetime_strings.c index 038d52290..97d170230 100644 --- a/numpy/core/src/multiarray/datetime_strings.c +++ b/numpy/core/src/multiarray/datetime_strings.c @@ -14,7 +14,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c index 0d9d6faf0..d687f799c 100644 --- a/numpy/core/src/multiarray/descriptor.c +++ b/numpy/core/src/multiarray/descriptor.c @@ -6,7 +6,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" @@ -3241,7 +3241,7 @@ descr_repeat(PyObject *self, Py_ssize_t length) PyArray_Descr *new; if (length < 0) { return PyErr_Format(PyExc_ValueError, - "Array length must be >= 0, not %"INTP_FMT, length); + "Array length must be >= 0, not %"NPY_INTP_FMT, length); } tup = Py_BuildValue("O" NPY_SSIZE_T_PYFMT, self, length); if (tup == NULL) { diff --git a/numpy/core/src/multiarray/dtype_transfer.c b/numpy/core/src/multiarray/dtype_transfer.c index 8bc6c42a6..47c487338 100644 --- a/numpy/core/src/multiarray/dtype_transfer.c +++ b/numpy/core/src/multiarray/dtype_transfer.c @@ -16,7 +16,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include <numpy/npy_cpu.h> #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/einsum.c.src b/numpy/core/src/multiarray/einsum.c.src index 1692b633a..f5c61022c 100644 --- a/numpy/core/src/multiarray/einsum.c.src +++ b/numpy/core/src/multiarray/einsum.c.src @@ -14,7 +14,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include <numpy/halffloat.h> #include <numpy/npy_3kcompat.h> diff --git a/numpy/core/src/multiarray/flagsobject.c b/numpy/core/src/multiarray/flagsobject.c index 08f08c41d..9ada8a26b 100644 --- a/numpy/core/src/multiarray/flagsobject.c +++ b/numpy/core/src/multiarray/flagsobject.c @@ -6,7 +6,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/getset.c b/numpy/core/src/multiarray/getset.c index 099e936eb..bcd6f207e 100644 --- a/numpy/core/src/multiarray/getset.c +++ b/numpy/core/src/multiarray/getset.c @@ -6,7 +6,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/hashdescr.c b/numpy/core/src/multiarray/hashdescr.c index b64122985..a5ca2d3c5 100644 --- a/numpy/core/src/multiarray/hashdescr.c +++ b/numpy/core/src/multiarray/hashdescr.c @@ -2,7 +2,7 @@ #include <Python.h> #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" diff --git a/numpy/core/src/multiarray/item_selection.c b/numpy/core/src/multiarray/item_selection.c index 5efb37d05..00398e49b 100644 --- a/numpy/core/src/multiarray/item_selection.c +++ b/numpy/core/src/multiarray/item_selection.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "numpy/npy_math.h" diff --git a/numpy/core/src/multiarray/iterators.c b/numpy/core/src/multiarray/iterators.c index 8c6f50d38..2c173e3e9 100644 --- a/numpy/core/src/multiarray/iterators.c +++ b/numpy/core/src/multiarray/iterators.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" @@ -722,8 +722,8 @@ iter_subscript_int(PyArrayIterObject *self, PyArrayObject *ind) } if (num < 0 || num >= self->size) { PyErr_Format(PyExc_IndexError, - "index %"INTP_FMT" out of bounds" \ - " 0<=index<%"INTP_FMT, + "index %"NPY_INTP_FMT" out of bounds" \ + " 0<=index<%"NPY_INTP_FMT, num, self->size); PyArray_ITER_RESET(self); return NULL; @@ -763,8 +763,8 @@ iter_subscript_int(PyArrayIterObject *self, PyArrayObject *ind) } if (num < 0 || num >= self->size) { PyErr_Format(PyExc_IndexError, - "index %"INTP_FMT" out of bounds" \ - " 0<=index<%"INTP_FMT, + "index %"NPY_INTP_FMT" out of bounds" \ + " 0<=index<%"NPY_INTP_FMT, num, self->size); Py_DECREF(ind_it); Py_DECREF(ret); @@ -1005,8 +1005,8 @@ iter_ass_sub_int(PyArrayIterObject *self, PyArrayObject *ind, } if ((num < 0) || (num >= self->size)) { PyErr_Format(PyExc_IndexError, - "index %"INTP_FMT" out of bounds" \ - " 0<=index<%"INTP_FMT, num, + "index %"NPY_INTP_FMT" out of bounds" \ + " 0<=index<%"NPY_INTP_FMT, num, self->size); Py_DECREF(ind_it); return -1; diff --git a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src index 1946cda3d..2ba531116 100644 --- a/numpy/core/src/multiarray/lowlevel_strided_loops.c.src +++ b/numpy/core/src/multiarray/lowlevel_strided_loops.c.src @@ -14,7 +14,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include <numpy/npy_cpu.h> #include <numpy/halffloat.h> diff --git a/numpy/core/src/multiarray/mapping.c b/numpy/core/src/multiarray/mapping.c index 6d21859e5..b25d770fe 100644 --- a/numpy/core/src/multiarray/mapping.c +++ b/numpy/core/src/multiarray/mapping.c @@ -5,7 +5,7 @@ /*#include <stdio.h>*/ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "npy_config.h" @@ -1609,8 +1609,8 @@ array_ass_sub(PyArrayObject *self, PyObject *ind, PyObject *op) } if (v < 0 || v >= shape[idim]) { PyErr_Format(PyExc_IndexError, - "index (%"INTP_FMT") out of range "\ - "(0<=index<%"INTP_FMT") in dimension %d", + "index (%"NPY_INTP_FMT") out of range "\ + "(0<=index<%"NPY_INTP_FMT") in dimension %d", vals[idim], PyArray_DIMS(self)[idim], idim); return -1; } @@ -1632,8 +1632,8 @@ array_ass_sub(PyArrayObject *self, PyObject *ind, PyObject *op) } if (v < 0 || v >= shape[idim]) { PyErr_Format(PyExc_IndexError, - "index (%"INTP_FMT") out of range "\ - "(0<=index<%"INTP_FMT") in dimension %d", + "index (%"NPY_INTP_FMT") out of range "\ + "(0<=index<%"NPY_INTP_FMT") in dimension %d", vals[idim], PyArray_DIMS(self)[idim], idim); return -1; } @@ -1767,8 +1767,8 @@ array_subscript_nice(PyArrayObject *self, PyObject *op) } if (v < 0 || v >= shape[idim]) { PyErr_Format(PyExc_IndexError, - "index (%"INTP_FMT") out of range "\ - "(0<=index<%"INTP_FMT") in dimension %d", + "index (%"NPY_INTP_FMT") out of range "\ + "(0<=index<%"NPY_INTP_FMT") in dimension %d", vals[idim], PyArray_DIMS(self)[idim], idim); return NULL; } @@ -1789,8 +1789,8 @@ array_subscript_nice(PyArrayObject *self, PyObject *op) } if (v < 0 || v >= shape[idim]) { PyErr_Format(PyExc_IndexError, - "index (%"INTP_FMT") out of range "\ - "(0<=index<%"INTP_FMT") in dimension %d", + "index (%"NPY_INTP_FMT") out of range "\ + "(0<=index<%"NPY_INTP_FMT") in dimension %d", vals[idim], PyArray_DIMS(self)[idim], idim); return NULL; } @@ -2269,8 +2269,8 @@ PyArray_MapIterBind(PyArrayMapIterObject *mit, PyArrayObject *arr) } if (indval < 0 || indval >= dimsize) { PyErr_Format(PyExc_IndexError, - "index (%"INTP_FMT") out of range "\ - "(0<=index<%"INTP_FMT") in dimension %d", + "index (%"NPY_INTP_FMT") out of range "\ + "(0<=index<%"NPY_INTP_FMT") in dimension %d", indval, (dimsize-1), mit->iteraxes[i]); goto fail; } diff --git a/numpy/core/src/multiarray/methods.c b/numpy/core/src/multiarray/methods.c index 13388ca3b..c715008a4 100644 --- a/numpy/core/src/multiarray/methods.c +++ b/numpy/core/src/multiarray/methods.c @@ -5,7 +5,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/multiarray_tests.c.src b/numpy/core/src/multiarray/multiarray_tests.c.src index e1d97b76c..1868c9a07 100644 --- a/numpy/core/src/multiarray/multiarray_tests.c.src +++ b/numpy/core/src/multiarray/multiarray_tests.c.src @@ -1,6 +1,6 @@ #define NPY_NO_DEPRECATED_API #include <Python.h> -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/multiarraymodule.c b/numpy/core/src/multiarray/multiarraymodule.c index c7cab549a..f44374909 100644 --- a/numpy/core/src/multiarray/multiarraymodule.c +++ b/numpy/core/src/multiarray/multiarraymodule.c @@ -20,7 +20,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "numpy/npy_math.h" @@ -3578,7 +3578,7 @@ _vec_string(PyObject *NPY_UNUSED(dummy), PyObject *args, PyObject *kwds) #ifndef __NPY_PRIVATE_NO_SIGNAL -SIGJMP_BUF _NPY_SIGINT_BUF; +NPY_SIGJMP_BUF _NPY_SIGINT_BUF; /*NUMPY_API */ @@ -3586,7 +3586,7 @@ NPY_NO_EXPORT void _PyArray_SigintHandler(int signum) { PyOS_setsig(signum, SIG_IGN); - SIGLONGJMP(_NPY_SIGINT_BUF, signum); + NPY_SIGLONGJMP(_NPY_SIGINT_BUF, signum); } /*NUMPY_API diff --git a/numpy/core/src/multiarray/na_mask.c b/numpy/core/src/multiarray/na_mask.c index 17dcd67d3..ce3fe3863 100644 --- a/numpy/core/src/multiarray/na_mask.c +++ b/numpy/core/src/multiarray/na_mask.c @@ -12,7 +12,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/na_object.c b/numpy/core/src/multiarray/na_object.c index 3c1c4a07b..ed319a348 100644 --- a/numpy/core/src/multiarray/na_object.c +++ b/numpy/core/src/multiarray/na_object.c @@ -12,7 +12,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include <numpy/arrayscalars.h> #include "npy_config.h" diff --git a/numpy/core/src/multiarray/nditer_impl.h b/numpy/core/src/multiarray/nditer_impl.h index de361470d..dc749fc8c 100644 --- a/numpy/core/src/multiarray/nditer_impl.h +++ b/numpy/core/src/multiarray/nditer_impl.h @@ -16,7 +16,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include <numpy/npy_3kcompat.h> #include "convert_datatype.h" diff --git a/numpy/core/src/multiarray/nditer_pywrap.c b/numpy/core/src/multiarray/nditer_pywrap.c index db6d113f4..c0323c346 100644 --- a/numpy/core/src/multiarray/nditer_pywrap.c +++ b/numpy/core/src/multiarray/nditer_pywrap.c @@ -12,7 +12,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include <numpy/npy_3kcompat.h> #include "npy_config.h" diff --git a/numpy/core/src/multiarray/number.c b/numpy/core/src/multiarray/number.c index 9037c1394..3dd8e0ae4 100644 --- a/numpy/core/src/multiarray/number.c +++ b/numpy/core/src/multiarray/number.c @@ -5,7 +5,7 @@ /*#include <stdio.h>*/ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/numpymemoryview.c b/numpy/core/src/multiarray/numpymemoryview.c index b1fdfb1ce..15934d062 100644 --- a/numpy/core/src/multiarray/numpymemoryview.c +++ b/numpy/core/src/multiarray/numpymemoryview.c @@ -12,7 +12,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/numpyos.c b/numpy/core/src/multiarray/numpyos.c index ecafbd5ea..1fa514757 100644 --- a/numpy/core/src/multiarray/numpyos.c +++ b/numpy/core/src/multiarray/numpyos.c @@ -6,7 +6,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/npy_math.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/reduction.c b/numpy/core/src/multiarray/reduction.c index 603a5a784..b17e3ca6e 100644 --- a/numpy/core/src/multiarray/reduction.c +++ b/numpy/core/src/multiarray/reduction.c @@ -12,7 +12,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include <numpy/ndarrayobject.h> +#include <numpy/arrayobject.h> #include "npy_config.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/multiarray/refcount.c b/numpy/core/src/multiarray/refcount.c index 4d3b8ded7..44911a5fc 100644 --- a/numpy/core/src/multiarray/refcount.c +++ b/numpy/core/src/multiarray/refcount.c @@ -9,7 +9,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/scalarapi.c b/numpy/core/src/multiarray/scalarapi.c index 9d468379c..2bb7ff2ae 100644 --- a/numpy/core/src/multiarray/scalarapi.c +++ b/numpy/core/src/multiarray/scalarapi.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "numpy/npy_math.h" diff --git a/numpy/core/src/multiarray/sequence.c b/numpy/core/src/multiarray/sequence.c index 35803c8a3..0491fe1ad 100644 --- a/numpy/core/src/multiarray/sequence.c +++ b/numpy/core/src/multiarray/sequence.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/shape.c b/numpy/core/src/multiarray/shape.c index 9c0f7dbe1..2258d9f50 100644 --- a/numpy/core/src/multiarray/shape.c +++ b/numpy/core/src/multiarray/shape.c @@ -4,7 +4,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "numpy/npy_math.h" diff --git a/numpy/core/src/multiarray/ucsnarrow.c b/numpy/core/src/multiarray/ucsnarrow.c index 2d1efa4c3..1dfd21e4e 100644 --- a/numpy/core/src/multiarray/ucsnarrow.c +++ b/numpy/core/src/multiarray/ucsnarrow.c @@ -6,7 +6,7 @@ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/npy_math.h" #include "npy_config.h" diff --git a/numpy/core/src/multiarray/usertypes.c b/numpy/core/src/multiarray/usertypes.c index 04b7eafaa..c11e83185 100644 --- a/numpy/core/src/multiarray/usertypes.c +++ b/numpy/core/src/multiarray/usertypes.c @@ -27,7 +27,7 @@ maintainer email: oliphant.travis@ieee.org /*#include <stdio.h>*/ #define NPY_NO_DEPRECATED_API #define _MULTIARRAYMODULE -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/arrayscalars.h" #include "npy_config.h" diff --git a/numpy/core/src/scalarmathmodule.c.src b/numpy/core/src/scalarmathmodule.c.src index 43bc961b0..0bff8d171 100644 --- a/numpy/core/src/scalarmathmodule.c.src +++ b/numpy/core/src/scalarmathmodule.c.src @@ -9,7 +9,7 @@ #define NPY_NO_DEPRECATED_API #include "Python.h" -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "numpy/arrayscalars.h" diff --git a/numpy/core/src/umath/loops.c.src b/numpy/core/src/umath/loops.c.src index 2455431bc..cc8d3f535 100644 --- a/numpy/core/src/umath/loops.c.src +++ b/numpy/core/src/umath/loops.c.src @@ -11,7 +11,7 @@ #define NO_IMPORT_ARRAY #endif -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "numpy/npy_math.h" #include "numpy/halffloat.h" diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 7e8556ee7..f9906823c 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -36,7 +36,7 @@ #include "numpy/npy_3kcompat.h" -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "lowlevel_strided_loops.h" #include "ufunc_type_resolution.h" diff --git a/numpy/core/src/umath/umath_tests.c.src b/numpy/core/src/umath/umath_tests.c.src index b06c50351..4f2342508 100644 --- a/numpy/core/src/umath/umath_tests.c.src +++ b/numpy/core/src/umath/umath_tests.c.src @@ -8,7 +8,7 @@ #define NPY_NO_DEPRECATED_API #include "Python.h" -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "numpy/npy_3kcompat.h" diff --git a/numpy/core/src/umath/umathmodule.c b/numpy/core/src/umath/umathmodule.c index a6a9b7b2b..7ac1ecaf8 100644 --- a/numpy/core/src/umath/umathmodule.c +++ b/numpy/core/src/umath/umathmodule.c @@ -25,7 +25,7 @@ #define PY_ARRAY_UNIQUE_SYMBOL _npy_umathmodule_ARRAY_API #endif -#include "numpy/ndarrayobject.h" +#include "numpy/arrayobject.h" #include "numpy/ufuncobject.h" #include "abstract.h" |