Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Move clinic_state down to where it belongs; left-overs from first PR
  • Loading branch information
erlend-aasland committed Feb 3, 2023
commit a02e90aafbdbcc1e6dbdb8d9c4aa169a85797bf8
2 changes: 1 addition & 1 deletion Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ find_state_by_type(PyTypeObject *tp)
assert(mod != NULL);
return get_module_state(mod);
}
#define clinic_state() (find_state_by_type(type))

/*[clinic input]
module itertools
Expand Down Expand Up @@ -84,6 +83,7 @@ static PyTypeObject teedataobject_type;
static PyTypeObject tee_type;
static PyTypeObject batched_type;

#define clinic_state() (find_state_by_type(type))
#define clinic_state_by_cls() (get_module_state_by_cls(base_tp))
#include "clinic/itertoolsmodule.c.h"
#undef clinic_state_by_cls
Expand Down