Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assort IWYU Cleanups #56295

Merged
merged 5 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions pandas/_libs/include/pandas/parser/tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,8 @@ See LICENSE for the license
#define ERROR_OVERFLOW 2
#define ERROR_INVALID_CHARS 3

#include "pandas/portable.h"
#include <stdint.h>

#include "pandas/vendored/klib/khash.h"

#define STREAM_INIT_SIZE 32

#define REACHED_EOF 1
Expand Down
41 changes: 0 additions & 41 deletions pandas/_libs/include/pandas/vendored/ujson/python/version.h

This file was deleted.

1 change: 1 addition & 0 deletions pandas/_libs/src/parser/pd_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Distributed under the terms of the BSD Simplified License.

#include "pandas/parser/pd_parser.h"
#include "pandas/parser/io.h"
#include "pandas/portable.h"

static int to_double(char *item, double *p_value, char sci, char decimal,
int *maybe_int) {
Expand Down
3 changes: 2 additions & 1 deletion pandas/_libs/src/parser/tokenizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ Python's built-in csv module and Warren Weckesser's textreader project on
GitHub. See Python Software Foundation License and BSD licenses for these.

*/

#include "pandas/parser/tokenizer.h"
#include "pandas/portable.h"

#include <ctype.h>
#include <float.h>
#include <math.h>
#include <stdbool.h>

#include "pandas/portable.h"
#include "pandas/vendored/klib/khash.h" // for kh_int64_t, kh_destroy_int64

void coliter_setup(coliter_t *self, parser_t *parser, int64_t i,
int64_t start) {
Expand Down
3 changes: 1 addition & 2 deletions pandas/_libs/src/vendored/numpy/datetime/np_datetime.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ This file is derived from NumPy 1.7. See NUMPY_LICENSE.txt
#include <Python.h>

#include "pandas/vendored/numpy/datetime/np_datetime.h"
#include <numpy/arrayobject.h>
#include <numpy/arrayscalars.h>
#include <numpy/ndarraytypes.h>
#include <numpy/npy_common.h>

#if defined(_WIN32)
#ifndef ENABLE_INTSAFE_SIGNED_FUNCTIONS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ This file implements string parsing and creation for NumPy datetime.

#include <time.h>

#include <numpy/arrayobject.h>
#include <numpy/arrayscalars.h>
#include <numpy/ndarraytypes.h>
#include <numpy/npy_common.h>

#include "pandas/vendored/numpy/datetime/np_datetime.h"
#include "pandas/vendored/numpy/datetime/np_datetime_strings.h"
Expand Down
1 change: 0 additions & 1 deletion pandas/_libs/src/vendored/ujson/lib/ultrajsondec.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ Numeric decoder derived from TCL library
// Licence at LICENSES/ULTRAJSON_LICENSE

#include "pandas/vendored/ujson/lib/ultrajson.h"
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <locale.h>
Expand Down
2 changes: 0 additions & 2 deletions pandas/_libs/src/vendored/ujson/lib/ultrajsonenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ Numeric decoder derived from TCL library
// Licence at LICENSES/ULTRAJSON_LICENSE

#include "pandas/vendored/ujson/lib/ultrajson.h"
#include <assert.h>
#include <float.h>
#include <locale.h>
#include <math.h>
#include <stdint.h>
Expand Down
1 change: 0 additions & 1 deletion pandas/_libs/src/vendored/ujson/python/objToJSON.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Numeric decoder derived from TCL library

#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include <math.h>

#define NO_IMPORT_ARRAY
#define PY_ARRAY_UNIQUE_SYMBOL UJSON_NUMPY
Expand Down
1 change: 0 additions & 1 deletion pandas/_libs/src/vendored/ujson/python/ujson.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Numeric decoder derived from TCL library

// Licence at LICENSES/ULTRAJSON_LICENSE

#include "pandas/vendored/ujson/python/version.h"
#define PY_SSIZE_T_CLEAN
#include <Python.h>
#define PY_ARRAY_UNIQUE_SYMBOL UJSON_NUMPY
Expand Down
Loading