@@ -13,8 +13,8 @@ extern "C" {
13
13
#endif
14
14
15
15
#define PY_SSIZE_T_CLEAN
16
- #include <Python.h>
17
16
#include "pandas/parser/tokenizer.h"
17
+ #include <Python.h>
18
18
19
19
typedef struct {
20
20
int (* to_double )(char * , double * , char , char , int * );
@@ -81,11 +81,10 @@ static PandasParser_CAPI *PandasParserAPI = NULL;
81
81
PandasParserAPI->parser_set_default_options((self))
82
82
#define parser_consume_rows (self , nrows ) \
83
83
PandasParserAPI->parser_consume_rows((self), (nrows))
84
- #define parser_trim_buffers (self ) \
85
- PandasParserAPI->parser_trim_buffers((self))
86
- #define tokenize_all_rows (self , encoding_errors ) \
84
+ #define parser_trim_buffers (self ) PandasParserAPI->parser_trim_buffers((self))
85
+ #define tokenize_all_rows (self , encoding_errors ) \
87
86
PandasParserAPI->tokenize_all_rows((self), (encoding_errors))
88
- #define tokenize_nrows (self , nrows , encoding_errors ) \
87
+ #define tokenize_nrows (self , nrows , encoding_errors ) \
89
88
PandasParserAPI->tokenize_nrows((self), (nrows), (encoding_errors))
90
89
#define str_to_int64 (p_item , int_min , int_max , error , t_sep ) \
91
90
PandasParserAPI->str_to_int64((p_item), (int_min), (int_max), (error), \
@@ -104,7 +103,7 @@ static PandasParser_CAPI *PandasParserAPI = NULL;
104
103
PandasParserAPI->round_trip((p), (q), (decimal), (sci), (tsep), \
105
104
(skip_trailing), (error), (maybe_int))
106
105
#define to_boolean (item , val ) PandasParserAPI->to_boolean((item), (val))
107
- #endif /* !defined(_PANDAS_PARSER_IMPL) */
106
+ #endif /* !defined(_PANDAS_PARSER_IMPL) */
108
107
109
108
#ifdef __cplusplus
110
109
}
0 commit comments