@@ -367,6 +367,8 @@ static struct PyMemberDef Dialect_memberlist[] = {
367367 { NULL }
368368};
369369
370+ #undef D_OFF
371+
370372static PyGetSetDef Dialect_getsetlist [] = {
371373 { "delimiter" , (getter )Dialect_get_delimiter },
372374 { "escapechar" , (getter )Dialect_get_escapechar },
@@ -502,6 +504,7 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
502504 DIALECT_GETATTR (skipinitialspace , "skipinitialspace" );
503505 DIALECT_GETATTR (strict , "strict" );
504506 }
507+ #undef DIALECT_GETATTR
505508
506509 /* check types and convert to C values */
507510#define DIASET (meth , name , target , src , dflt ) \
@@ -515,6 +518,7 @@ dialect_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
515518 DIASET (_set_int , "quoting" , & self -> quoting , quoting , QUOTE_MINIMAL );
516519 DIASET (_set_bool , "skipinitialspace" , & self -> skipinitialspace , skipinitialspace , false);
517520 DIASET (_set_bool , "strict" , & self -> strict , strict , false);
521+ #undef DIASET
518522
519523 /* validate options */
520524 if (dialect_check_quoting (self -> quoting ))
@@ -1026,6 +1030,8 @@ static struct PyMemberDef Reader_memberlist[] = {
10261030 { NULL }
10271031};
10281032
1033+ #undef R_OFF
1034+
10291035
10301036static PyType_Slot Reader_Type_slots [] = {
10311037 {Py_tp_doc , (char * )Reader_Type_doc },
@@ -1441,6 +1447,8 @@ static struct PyMemberDef Writer_memberlist[] = {
14411447 { NULL }
14421448};
14431449
1450+ #undef W_OFF
1451+
14441452static int
14451453Writer_traverse (WriterObj * self , visitproc visit , void * arg )
14461454{
0 commit comments