Skip to content

Commit 06cdc97

Browse files
committed
MAINT: Standardize guards in numpy/core/src/multiarray.
1 parent 4af05ea commit 06cdc97

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+156
-154
lines changed

.clang-format

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ DerivePointerAlignment: false
1616
IndentWidth: 4
1717
IncludeBlocks: Regroup
1818
IncludeCategories:
19-
- Regex: '^[<"](Python|structmember|pymem)'
19+
- Regex: '^[<"](Python|structmember|pymem)\.h'
2020
Priority: -3
2121
CaseSensitive: true
2222
- Regex: '^"numpy/'

numpy/core/src/multiarray/_datetime.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_PRIVATE__DATETIME_H_
2-
#define _NPY_PRIVATE__DATETIME_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY__DATETIME_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY__DATETIME_H_
33

44
extern NPY_NO_EXPORT char const *_datetime_strings[NPY_DATETIME_NUMUNITS];
55
extern NPY_NO_EXPORT int _days_per_month_table[2][12];
@@ -376,4 +376,4 @@ find_object_datetime_type(PyObject *obj, int type_num);
376376
NPY_NO_EXPORT int
377377
PyArray_InitializeDatetimeCasts(void);
378378

379-
#endif
379+
#endif /* NUMPY_CORE_SRC_MULTIARRAY__DATETIME_H_ */

numpy/core/src/multiarray/abstractdtypes.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_ABSTRACTDTYPES_H
2-
#define _NPY_ABSTRACTDTYPES_H
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ABSTRACTDTYPES_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_ABSTRACTDTYPES_H_
33

44
#include "dtypemeta.h"
55

@@ -16,4 +16,4 @@ NPY_NO_EXPORT extern PyArray_DTypeMeta PyArray_PyComplexAbstractDType;
1616
NPY_NO_EXPORT int
1717
initialize_and_map_pytypes_to_dtypes(void);
1818

19-
#endif /*_NPY_ABSTRACTDTYPES_H */
19+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ABSTRACTDTYPES_H_ */

numpy/core/src/multiarray/alloc.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
#ifndef _NPY_ARRAY_ALLOC_H_
2-
#define _NPY_ARRAY_ALLOC_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ALLOC_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_ALLOC_H_
3+
34
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
45
#define _MULTIARRAYMODULE
5-
#include <numpy/ndarraytypes.h>
6+
#include "numpy/ndarraytypes.h"
67

78
#define NPY_TRACE_DOMAIN 389047
89

@@ -36,4 +37,4 @@ npy_free_cache_dim_array(PyArrayObject * arr)
3637
npy_free_cache_dim(PyArray_DIMS(arr), PyArray_NDIM(arr));
3738
}
3839

39-
#endif
40+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ALLOC_H_ */

numpy/core/src/multiarray/array_coercion.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_ARRAY_COERCION_H
2-
#define _NPY_ARRAY_COERCION_H
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAY_COERCION_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAY_COERCION_H_
33

44

55
/*
@@ -54,4 +54,4 @@ npy_unlink_coercion_cache(coercion_cache_obj *current);
5454
NPY_NO_EXPORT int
5555
PyArray_AssignFromCache(PyArrayObject *self, coercion_cache_obj *cache);
5656

57-
#endif /* _NPY_ARRAY_COERCION_H */
57+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ARRAY_COERCION_H_ */

numpy/core/src/multiarray/array_method.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_ARRAY_METHOD_H
2-
#define _NPY_ARRAY_METHOD_H
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAY_METHOD_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAY_METHOD_H_
33

44
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
55
#define _MULTIARRAYMODULE
@@ -177,4 +177,4 @@ PyArrayMethod_GetMaskedStridedLoop(
177177
NPY_NO_EXPORT PyBoundArrayMethodObject *
178178
PyArrayMethod_FromSpec_int(PyArrayMethod_Spec *spec, int private);
179179

180-
#endif /*_NPY_ARRAY_METHOD_H*/
180+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ARRAY_METHOD_H_ */

numpy/core/src/multiarray/arrayfunction_override.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_PRIVATE__ARRAYFUNCTION_OVERRIDE_H
2-
#define _NPY_PRIVATE__ARRAYFUNCTION_OVERRIDE_H
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYFUNCTION_OVERRIDE_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYFUNCTION_OVERRIDE_H_
33

44
NPY_NO_EXPORT PyObject *
55
array_implement_array_function(
@@ -19,4 +19,4 @@ NPY_NO_EXPORT PyObject *
1919
array_function_method_impl(PyObject *func, PyObject *types, PyObject *args,
2020
PyObject *kwargs);
2121

22-
#endif
22+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ARRAYFUNCTION_OVERRIDE_H_ */

numpy/core/src/multiarray/arrayobject.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#ifndef _NPY_INTERNAL_ARRAYOBJECT_H_
2-
#define _NPY_INTERNAL_ARRAYOBJECT_H_
3-
41
#ifndef _MULTIARRAYMODULE
52
#error You should not include this
63
#endif
74

5+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_
6+
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_
7+
88
NPY_NO_EXPORT PyObject *
99
_strings_richcompare(PyArrayObject *self, PyArrayObject *other, int cmp_op,
1010
int rstrip);
@@ -26,4 +26,4 @@ array_might_be_written(PyArrayObject *obj);
2626
*/
2727
static const int NPY_ARRAY_WARN_ON_WRITE = (1 << 31);
2828

29-
#endif
29+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ARRAYOBJECT_H_ */

numpy/core/src/multiarray/arraytypes.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_ARRAYTYPES_H_
2-
#define _NPY_ARRAYTYPES_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_
33

44
#include "common.h"
55

@@ -28,4 +28,4 @@ small_correlate(const char * d_, npy_intp dstride,
2828
npy_intp nk, enum NPY_TYPES ktype,
2929
char * out_, npy_intp ostride);
3030

31-
#endif
31+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_ARRAYTYPES_H_ */

numpy/core/src/multiarray/calculation.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_CALCULATION_H_
2-
#define _NPY_CALCULATION_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_CALCULATION_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_CALCULATION_H_
33

44
NPY_NO_EXPORT PyObject*
55
PyArray_ArgMax(PyArrayObject* self, int axis, PyArrayObject *out);
@@ -67,4 +67,4 @@ PyArray_All(PyArrayObject* self, int axis, PyArrayObject* out);
6767
NPY_NO_EXPORT PyObject*
6868
PyArray_Any(PyArrayObject* self, int axis, PyArrayObject* out);
6969

70-
#endif
70+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_CALCULATION_H_ */

numpy/core/src/multiarray/common.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
#ifndef _NPY_PRIVATE_COMMON_H_
2-
#define _NPY_PRIVATE_COMMON_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_COMMON_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_COMMON_H_
3+
34
#include <structmember.h>
4-
#include <numpy/npy_common.h>
5-
#include <numpy/ndarraytypes.h>
6-
#include <limits.h>
5+
#include "numpy/npy_common.h"
6+
#include "numpy/ndarraytypes.h"
77
#include "npy_import.h"
8+
#include <limits.h>
89

910
#define error_converting(x) (((x) == -1) && PyErr_Occurred())
1011

@@ -343,5 +344,4 @@ new_array_for_sum(PyArrayObject *ap1, PyArrayObject *ap2, PyArrayObject* out,
343344
*/
344345
#define NPY_ITER_REDUCTION_AXIS(axis) (axis + (1 << (NPY_BITSOF_INT - 2)))
345346

346-
#endif
347-
347+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_COMMON_H_ */

numpy/core/src/multiarray/common_dtype.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_COMMON_DTYPE_H_
2-
#define _NPY_COMMON_DTYPE_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_COMMON_DTYPE_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_COMMON_DTYPE_H_
33

44
#define NPY_NO_DEPRECATED_API NPY_API_VERSION
55
#define _MULTIARRAYMODULE
@@ -14,4 +14,4 @@ NPY_NO_EXPORT PyArray_DTypeMeta *
1414
PyArray_PromoteDTypeSequence(
1515
npy_intp length, PyArray_DTypeMeta **dtypes_in);
1616

17-
#endif /* _NPY_COMMON_DTYPE_H_ */
17+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_COMMON_DTYPE_H_ */

numpy/core/src/multiarray/compiled_base.h

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#ifndef _NPY_PRIVATE__COMPILED_BASE_H_
2-
#define _NPY_PRIVATE__COMPILED_BASE_H_
3-
#include <numpy/ndarraytypes.h>
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_COMPILED_BASE_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_COMPILED_BASE_H_
3+
4+
#include "numpy/ndarraytypes.h"
45

56
NPY_NO_EXPORT PyObject *
67
arr_insert(PyObject *, PyObject *, PyObject *);
@@ -23,4 +24,4 @@ io_pack(PyObject *, PyObject *, PyObject *);
2324
NPY_NO_EXPORT PyObject *
2425
io_unpack(PyObject *, PyObject *, PyObject *);
2526

26-
#endif
27+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_COMPILED_BASE_H_ */

numpy/core/src/multiarray/conversion_utils.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#ifndef _NPY_PRIVATE_CONVERSION_UTILS_H_
2-
#define _NPY_PRIVATE_CONVERSION_UTILS_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_CONVERSION_UTILS_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_CONVERSION_UTILS_H_
33

4-
#include <numpy/ndarraytypes.h>
4+
#include "numpy/ndarraytypes.h"
55

66
NPY_NO_EXPORT int
77
PyArray_IntpConverter(PyObject *obj, PyArray_Dims *seq);
@@ -82,4 +82,4 @@ PyArray_ConvertMultiAxis(PyObject *axis_in, int ndim, npy_bool *out_axis_flags);
8282
*/
8383
extern NPY_NO_EXPORT int evil_global_disable_warn_O4O8_flag;
8484

85-
#endif
85+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_CONVERSION_UTILS_H_ */

numpy/core/src/multiarray/convert.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#ifndef _NPY_ARRAYOBJECT_CONVERT_H_
2-
#define _NPY_ARRAYOBJECT_CONVERT_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_CONVERT_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_CONVERT_H_
33

44
NPY_NO_EXPORT int
55
PyArray_AssignZero(PyArrayObject *dst,
66
PyArrayObject *wheremask);
77

8-
#endif
8+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_CONVERT_H_ */

numpy/core/src/multiarray/convert_datatype.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_ARRAY_CONVERT_DATATYPE_H_
2-
#define _NPY_ARRAY_CONVERT_DATATYPE_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_CONVERT_DATATYPE_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_CONVERT_DATATYPE_H_
33

44
#include "array_method.h"
55

@@ -99,4 +99,4 @@ simple_cast_resolve_descriptors(
9999
NPY_NO_EXPORT int
100100
PyArray_InitializeCasts(void);
101101

102-
#endif
102+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_CONVERT_DATATYPE_H_ */

numpy/core/src/multiarray/ctors.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_ARRAY_CTORS_H_
2-
#define _NPY_ARRAY_CTORS_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_CTORS_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_CTORS_H_
33

44
NPY_NO_EXPORT PyObject *
55
PyArray_NewFromDescr(
@@ -102,4 +102,4 @@ NPY_NO_EXPORT PyArrayObject *
102102
PyArray_SubclassWrap(PyArrayObject *arr_of_subclass, PyArrayObject *towrap);
103103

104104

105-
#endif
105+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_CTORS_H_ */

numpy/core/src/multiarray/datetime_busday.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_PRIVATE__DATETIME_BUSDAY_H_
2-
#define _NPY_PRIVATE__DATETIME_BUSDAY_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAY_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAY_H_
33

44
/*
55
* This is the 'busday_offset' function exposed for calling
@@ -25,4 +25,4 @@ NPY_NO_EXPORT PyObject *
2525
array_is_busday(PyObject *NPY_UNUSED(self),
2626
PyObject *args, PyObject *kwds);
2727

28-
#endif
28+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAY_H_ */

numpy/core/src/multiarray/datetime_busdaycal.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_PRIVATE__DATETIME_BUSDAYDEF_H_
2-
#define _NPY_PRIVATE__DATETIME_BUSDAYDEF_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAYCAL_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAYCAL_H_
33

44
/*
55
* A list of holidays, which should be sorted, not contain any
@@ -59,4 +59,4 @@ PyArray_HolidaysConverter(PyObject *dates_in, npy_holidayslist *holidays);
5959

6060

6161

62-
#endif
62+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_DATETIME_BUSDAYCAL_H_ */

numpy/core/src/multiarray/datetime_strings.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_PRIVATE__DATETIME_STRINGS_H_
2-
#define _NPY_PRIVATE__DATETIME_STRINGS_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_DATETIME_STRINGS_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_DATETIME_STRINGS_H_
33

44
/*
55
* Parses (almost) standard ISO 8601 date strings. The differences are:
@@ -81,4 +81,4 @@ NPY_NO_EXPORT PyObject *
8181
array_datetime_as_string(PyObject *NPY_UNUSED(self), PyObject *args,
8282
PyObject *kwds);
8383

84-
#endif
84+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_DATETIME_STRINGS_H_ */

numpy/core/src/multiarray/descriptor.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_ARRAYDESCR_H_
2-
#define _NPY_ARRAYDESCR_H_
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_DESCRIPTOR_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_DESCRIPTOR_H_
33

44
NPY_NO_EXPORT PyObject *arraydescr_protocol_typestr_get(
55
PyArray_Descr *, void *);
@@ -30,4 +30,4 @@ arraydescr_field_subset_view(PyArray_Descr *self, PyObject *ind);
3030

3131
extern NPY_NO_EXPORT char const *_datetime_strings[];
3232

33-
#endif
33+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_DESCRIPTOR_H_ */

numpy/core/src/multiarray/dragon4.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@
2929
* Ryan Juckett's original code was under the Zlib license; he gave numpy
3030
* permission to include it under the MIT license instead.
3131
*/
32-
33-
#ifndef _NPY_DRAGON4_H_
34-
#define _NPY_DRAGON4_H_
32+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_DRAGON4_H_
33+
#define NUMPY_CORE_SRC_MULTIARRAY_DRAGON4_H_
3534

3635
#include <Python.h>
3736
#include <structmember.h>
@@ -136,5 +135,4 @@ Dragon4_Scientific(PyObject *obj, DigitMode digit_mode, int precision,
136135
int min_digits, int sign, TrimMode trim, int pad_left,
137136
int exp_digits);
138137

139-
#endif
140-
138+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_DRAGON4_H_ */

numpy/core/src/multiarray/dtype_transfer.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_DTYPE_TRANSFER_H
2-
#define _NPY_DTYPE_TRANSFER_H
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_DTYPE_TRANSFER_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_DTYPE_TRANSFER_H_
33

44
#include "array_method.h"
55

@@ -202,4 +202,4 @@ get_wrapped_legacy_cast_function(int aligned,
202202
int *out_needs_api, int allow_wrapped);
203203

204204

205-
#endif /* _NPY_DTYPE_TRANSFER_H */
205+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_DTYPE_TRANSFER_H_ */

numpy/core/src/multiarray/dtypemeta.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_DTYPEMETA_H
2-
#define _NPY_DTYPEMETA_H
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_DTYPEMETA_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_DTYPEMETA_H_
33

44

55
/* DType flags, currently private, since we may just expose functions */
@@ -80,4 +80,4 @@ PyArray_DTypeFromTypeNum(int typenum)
8080
NPY_NO_EXPORT int
8181
dtypemeta_wrap_legacy_descriptor(PyArray_Descr *dtypem);
8282

83-
#endif /*_NPY_DTYPEMETA_H */
83+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_DTYPEMETA_H_ */

numpy/core/src/multiarray/einsum_debug.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
*
77
* See LICENSE.txt for the license.
88
*/
9-
#ifndef _NPY_MULTIARRAY_EINSUM_DEBUG_H
10-
#define _NPY_MULTIARRAY_EINSUM_DEBUG_H
9+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_EINSUM_DEBUG_H_
10+
#define NUMPY_CORE_SRC_MULTIARRAY_EINSUM_DEBUG_H_
1111

1212
/********** PRINTF DEBUG TRACING **************/
1313
#define NPY_EINSUM_DBG_TRACING 0
@@ -25,4 +25,4 @@
2525
#define NPY_EINSUM_DBG_PRINT3(s, p1, p2, p3)
2626
#endif
2727

28-
#endif
28+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_EINSUM_DEBUG_H_ */
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef _NPY_MULTIARRAY_EINSUM_SUMPROD_H
2-
#define _NPY_MULTIARRAY_EINSUM_SUMPROD_H
1+
#ifndef NUMPY_CORE_SRC_MULTIARRAY_EINSUM_SUMPROD_H_
2+
#define NUMPY_CORE_SRC_MULTIARRAY_EINSUM_SUMPROD_H_
33

44
#include <numpy/npy_common.h>
55

@@ -9,4 +9,4 @@ NPY_VISIBILITY_HIDDEN sum_of_products_fn
99
get_sum_of_products_function(int nop, int type_num,
1010
npy_intp itemsize, npy_intp const *fixed_strides);
1111

12-
#endif
12+
#endif /* NUMPY_CORE_SRC_MULTIARRAY_EINSUM_SUMPROD_H_ */

0 commit comments

Comments
 (0)