Skip to content

Commit 3d14193

Browse files
authored
Assort IWYU Cleanups (#56295)
* Assort IWYU cleanups * merge fixups * win help * more win fix
1 parent fc37af6 commit 3d14193

File tree

10 files changed

+5
-54
lines changed

10 files changed

+5
-54
lines changed

pandas/_libs/include/pandas/parser/tokenizer.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,8 @@ See LICENSE for the license
1818
#define ERROR_OVERFLOW 2
1919
#define ERROR_INVALID_CHARS 3
2020

21-
#include "pandas/portable.h"
2221
#include <stdint.h>
2322

24-
#include "pandas/vendored/klib/khash.h"
25-
2623
#define STREAM_INIT_SIZE 32
2724

2825
#define REACHED_EOF 1

pandas/_libs/include/pandas/vendored/ujson/python/version.h

Lines changed: 0 additions & 41 deletions
This file was deleted.

pandas/_libs/src/parser/pd_parser.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Distributed under the terms of the BSD Simplified License.
1010

1111
#include "pandas/parser/pd_parser.h"
1212
#include "pandas/parser/io.h"
13+
#include "pandas/portable.h"
1314

1415
static int to_double(char *item, double *p_value, char sci, char decimal,
1516
int *maybe_int) {

pandas/_libs/src/parser/tokenizer.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ Python's built-in csv module and Warren Weckesser's textreader project on
1616
GitHub. See Python Software Foundation License and BSD licenses for these.
1717
1818
*/
19-
2019
#include "pandas/parser/tokenizer.h"
20+
#include "pandas/portable.h"
2121

2222
#include <ctype.h>
2323
#include <float.h>
2424
#include <math.h>
2525
#include <stdbool.h>
2626

2727
#include "pandas/portable.h"
28+
#include "pandas/vendored/klib/khash.h" // for kh_int64_t, kh_destroy_int64
2829

2930
void coliter_setup(coliter_t *self, parser_t *parser, int64_t i,
3031
int64_t start) {

pandas/_libs/src/vendored/numpy/datetime/np_datetime.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ This file is derived from NumPy 1.7. See NUMPY_LICENSE.txt
2525
#include <Python.h>
2626

2727
#include "pandas/vendored/numpy/datetime/np_datetime.h"
28-
#include <numpy/arrayobject.h>
29-
#include <numpy/arrayscalars.h>
3028
#include <numpy/ndarraytypes.h>
29+
#include <numpy/npy_common.h>
3130

3231
#if defined(_WIN32)
3332
#ifndef ENABLE_INTSAFE_SIGNED_FUNCTIONS

pandas/_libs/src/vendored/numpy/datetime/np_datetime_strings.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ This file implements string parsing and creation for NumPy datetime.
3232

3333
#include <time.h>
3434

35-
#include <numpy/arrayobject.h>
36-
#include <numpy/arrayscalars.h>
3735
#include <numpy/ndarraytypes.h>
36+
#include <numpy/npy_common.h>
3837

3938
#include "pandas/vendored/numpy/datetime/np_datetime.h"
4039
#include "pandas/vendored/numpy/datetime/np_datetime_strings.h"

pandas/_libs/src/vendored/ujson/lib/ultrajsondec.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Numeric decoder derived from TCL library
4141
// Licence at LICENSES/ULTRAJSON_LICENSE
4242

4343
#include "pandas/vendored/ujson/lib/ultrajson.h"
44-
#include <assert.h>
4544
#include <errno.h>
4645
#include <limits.h>
4746
#include <locale.h>

pandas/_libs/src/vendored/ujson/lib/ultrajsonenc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ Numeric decoder derived from TCL library
4141
// Licence at LICENSES/ULTRAJSON_LICENSE
4242

4343
#include "pandas/vendored/ujson/lib/ultrajson.h"
44-
#include <assert.h>
45-
#include <float.h>
4644
#include <locale.h>
4745
#include <math.h>
4846
#include <stdint.h>

pandas/_libs/src/vendored/ujson/python/objToJSON.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ Numeric decoder derived from TCL library
4040

4141
#define PY_SSIZE_T_CLEAN
4242
#include <Python.h>
43-
#include <math.h>
4443

4544
#define NO_IMPORT_ARRAY
4645
#define PY_ARRAY_UNIQUE_SYMBOL UJSON_NUMPY

pandas/_libs/src/vendored/ujson/python/ujson.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Numeric decoder derived from TCL library
3838

3939
// Licence at LICENSES/ULTRAJSON_LICENSE
4040

41-
#include "pandas/vendored/ujson/python/version.h"
4241
#define PY_SSIZE_T_CLEAN
4342
#include <Python.h>
4443
#define PY_ARRAY_UNIQUE_SYMBOL UJSON_NUMPY

0 commit comments

Comments
 (0)