@@ -630,7 +630,7 @@ static int num_context_object_enter_events[NUM_CONTEXT_WATCHERS] = {0, 0};
630630static int num_context_object_exit_events [NUM_CONTEXT_WATCHERS ] = {0 , 0 };
631631
632632static int
633- handle_context_watcher_event (int which_watcher , PyContextEvent event , PyContext * ctx ) {
633+ handle_context_watcher_event (int which_watcher , PyContextEvent event , PyObject * ctx ) {
634634 if (event == Py_CONTEXT_EVENT_ENTER ) {
635635 num_context_object_enter_events [which_watcher ]++ ;
636636 }
@@ -644,22 +644,22 @@ handle_context_watcher_event(int which_watcher, PyContextEvent event, PyContext
644644}
645645
646646static int
647- first_context_watcher_callback (PyContextEvent event , PyContext * ctx ) {
647+ first_context_watcher_callback (PyContextEvent event , PyObject * ctx ) {
648648 return handle_context_watcher_event (0 , event , ctx );
649649}
650650
651651static int
652- second_context_watcher_callback (PyContextEvent event , PyContext * ctx ) {
652+ second_context_watcher_callback (PyContextEvent event , PyObject * ctx ) {
653653 return handle_context_watcher_event (1 , event , ctx );
654654}
655655
656656static int
657- noop_context_event_handler (PyContextEvent event , PyContext * ctx ) {
657+ noop_context_event_handler (PyContextEvent event , PyObject * ctx ) {
658658 return 0 ;
659659}
660660
661661static int
662- error_context_event_handler (PyContextEvent event , PyContext * ctx ) {
662+ error_context_event_handler (PyContextEvent event , PyObject * ctx ) {
663663 PyErr_SetString (PyExc_RuntimeError , "boom!" );
664664 return -1 ;
665665}
0 commit comments