@@ -447,7 +447,7 @@ set_hook(const char *funcname, PyObject **hook_var, PyObject *function)
447
447
}
448
448
449
449
/*[clinic input]
450
- @critical_section module
450
+ @critical_section
451
451
readline.set_completion_display_matches_hook
452
452
453
453
function: object = None
@@ -463,7 +463,7 @@ once each time matches need to be displayed.
463
463
static PyObject *
464
464
readline_set_completion_display_matches_hook_impl (PyObject * module ,
465
465
PyObject * function )
466
- /*[clinic end generated code: output=516e5cb8db75a328 input=5fddfa5edb69582c ]*/
466
+ /*[clinic end generated code: output=516e5cb8db75a328 input=ea4191e4a07d28d3 ]*/
467
467
{
468
468
readlinestate * state = get_readline_state (module );
469
469
PyObject * result = set_hook ("completion_display_matches_hook" ,
@@ -485,6 +485,7 @@ readline_set_completion_display_matches_hook_impl(PyObject *module,
485
485
}
486
486
487
487
/*[clinic input]
488
+ @critical_section
488
489
readline.set_startup_hook
489
490
490
491
function: object = None
@@ -498,7 +499,7 @@ before readline prints the first prompt.
498
499
499
500
static PyObject *
500
501
readline_set_startup_hook_impl (PyObject * module , PyObject * function )
501
- /*[clinic end generated code: output=02cd0e0c4fa082ad input=7783b4334b26d16d ]*/
502
+ /*[clinic end generated code: output=02cd0e0c4fa082ad input=11fce34992f1125e ]*/
502
503
{
503
504
readlinestate * state = get_readline_state (module );
504
505
return set_hook ("startup_hook" , & state -> startup_hook ,
@@ -510,6 +511,7 @@ readline_set_startup_hook_impl(PyObject *module, PyObject *function)
510
511
/* Set pre-input hook */
511
512
512
513
/*[clinic input]
514
+ @critical_section
513
515
readline.set_pre_input_hook
514
516
515
517
function: object = None
@@ -524,7 +526,7 @@ characters.
524
526
525
527
static PyObject *
526
528
readline_set_pre_input_hook_impl (PyObject * module , PyObject * function )
527
- /*[clinic end generated code: output=fe1a96505096f464 input=4f3eaeaf7ce1fdbe ]*/
529
+ /*[clinic end generated code: output=fe1a96505096f464 input=96d3d5ff4a0c7c28 ]*/
528
530
{
529
531
readlinestate * state = get_readline_state (module );
530
532
return set_hook ("pre_input_hook" , & state -> pre_input_hook ,
@@ -800,6 +802,7 @@ readline_get_completer_delims_impl(PyObject *module)
800
802
/* Set the completer function */
801
803
802
804
/*[clinic input]
805
+ @critical_section
803
806
readline.set_completer
804
807
805
808
function: object = None
@@ -814,7 +817,7 @@ It should return the next possible completion starting with 'text'.
814
817
815
818
static PyObject *
816
819
readline_set_completer_impl (PyObject * module , PyObject * function )
817
- /*[clinic end generated code: output=171a2a60f81d3204 input=51e81e13118eb877 ]*/
820
+ /*[clinic end generated code: output=171a2a60f81d3204 input=97f539d8d0bfcb95 ]*/
818
821
{
819
822
readlinestate * state = get_readline_state (module );
820
823
return set_hook ("completer" , & state -> completer , function );
0 commit comments