@@ -367,6 +367,8 @@ static struct PyMemberDef Dialect_memberlist[] = {
367
367
{ NULL }
368
368
};
369
369
370
+ #undef D_OFF
371
+
370
372
static PyGetSetDef Dialect_getsetlist [] = {
371
373
{ "delimiter" , (getter )Dialect_get_delimiter },
372
374
{ "escapechar" , (getter )Dialect_get_escapechar },
@@ -502,6 +504,7 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
502
504
DIALECT_GETATTR (skipinitialspace , "skipinitialspace" );
503
505
DIALECT_GETATTR (strict , "strict" );
504
506
}
507
+ #undef DIALECT_GETATTR
505
508
506
509
/* check types and convert to C values */
507
510
#define DIASET (meth , name , target , src , dflt ) \
@@ -515,6 +518,7 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
515
518
DIASET (_set_int , "quoting" , & self -> quoting , quoting , QUOTE_MINIMAL );
516
519
DIASET (_set_bool , "skipinitialspace" , & self -> skipinitialspace , skipinitialspace , false);
517
520
DIASET (_set_bool , "strict" , & self -> strict , strict , false);
521
+ #undef DIASET
518
522
519
523
/* validate options */
520
524
if (dialect_check_quoting (self -> quoting ))
@@ -1026,6 +1030,8 @@ static struct PyMemberDef Reader_memberlist[] = {
1026
1030
{ NULL }
1027
1031
};
1028
1032
1033
+ #undef R_OFF
1034
+
1029
1035
1030
1036
static PyType_Slot Reader_Type_slots [] = {
1031
1037
{Py_tp_doc , (char * )Reader_Type_doc },
@@ -1441,6 +1447,8 @@ static struct PyMemberDef Writer_memberlist[] = {
1441
1447
{ NULL }
1442
1448
};
1443
1449
1450
+ #undef W_OFF
1451
+
1444
1452
static int
1445
1453
Writer_traverse (WriterObj * self , visitproc visit , void * arg )
1446
1454
{
0 commit comments