Skip to content

Commit 8d551e9

Browse files
committed
Remove duplicate const definition - fixes header guard name
1 parent 61653d3 commit 8d551e9

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/delimited_to_arrays.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
#define AK_is_t(c) (((c) == 't') || ((c) == 'T'))
3131
#define AK_is_u(c) (((c) == 'u') || ((c) == 'U'))
3232

33-
static const size_t UCS4_SIZE = sizeof(Py_UCS4);
34-
3533
//------------------------------------------------------------------------------
3634
// Utility setters of C types from possibly NULL PyObject*; all return -1 on error.
3735

src/delimited_to_arrays.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# ifndef ARRAYKIT_SRC_FILE_PARSING_H_
2-
# define ARRAYKIT_SRC_FILE_PARSING_H_
1+
# ifndef ARRAYKIT_SRC_DELIMITED_TO_ARRAYS_H_
2+
# define ARRAYKIT_SRC_DELIMITED_TO_ARRAYS_H_
33

44
# include "Python.h"
55

@@ -13,4 +13,4 @@ iterable_str_to_array_1d(PyObject *Py_UNUSED(m), PyObject *args, PyObject *kwarg
1313
PyObject *
1414
split_after_count(PyObject *Py_UNUSED(m), PyObject *args, PyObject *kwargs);
1515

16-
# endif /* ARRAYKIT_SRC_FILE_PARSING_H_ */
16+
# endif /* ARRAYKIT_SRC_DELIMITED_TO_ARRAYS_H_ */

src/tri_map.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
# include "tri_map.h"
1212
# include "utilities.h"
1313

14-
static const size_t UCS4_SIZE = sizeof(Py_UCS4);
15-
1614
static inline NPY_DATETIMEUNIT
1715
AK_dt_unit_from_array(PyArrayObject* a) {
1816
// This is based on get_datetime_metadata_from_dtype in the NumPy source, but that function is private. This does not check that the dtype is of the appropriate type.

src/utilities.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
# include "numpy/arrayobject.h"
1212

13+
static const size_t UCS4_SIZE = sizeof(Py_UCS4);
14+
1315
//------------------------------------------------------------------------------
1416
// Macros
1517
//------------------------------------------------------------------------------

0 commit comments

Comments
 (0)