Skip to content

Commit 089821e

Browse files
committed
generate clinic stuff
1 parent 7124d20 commit 089821e

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

Modules/clinic/readline.c.h

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/readline.c

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Execute the init line provided in the string argument.
211211

212212
static PyObject *
213213
readline_parse_and_bind_impl(PyObject *module, PyObject *string)
214-
/*[clinic end generated code: output=828d9b6630d434f5 input=e89aac7c7a98067b]*/
214+
/*[clinic end generated code: output=828d9b6630d434f5 input=cefdc0f9f62f9fcc]*/
215215
{
216216
char *copy;
217217
PyObject *encoded = encode(string);
@@ -248,7 +248,7 @@ The default filename is the last filename used.
248248

249249
static PyObject *
250250
readline_read_init_file_impl(PyObject *module, PyObject *filename_obj)
251-
/*[clinic end generated code: output=8e059b676142831e input=496974ffe38b85db]*/
251+
/*[clinic end generated code: output=8e059b676142831e input=62b767adfab6cc15]*/
252252
{
253253
PyObject *filename_bytes;
254254
if (filename_obj != Py_None) {
@@ -280,7 +280,7 @@ The default filename is ~/.history.
280280

281281
static PyObject *
282282
readline_read_history_file_impl(PyObject *module, PyObject *filename_obj)
283-
/*[clinic end generated code: output=66a951836fb54fbb input=2eaa52b2bbf6fb83]*/
283+
/*[clinic end generated code: output=66a951836fb54fbb input=5d86fd7813172a67]*/
284284
{
285285
PyObject *filename_bytes;
286286
if (filename_obj != Py_None) {
@@ -313,7 +313,7 @@ The default filename is ~/.history.
313313

314314
static PyObject *
315315
readline_write_history_file_impl(PyObject *module, PyObject *filename_obj)
316-
/*[clinic end generated code: output=fbcad13d8ef59ae6 input=28a8e062fe363703]*/
316+
/*[clinic end generated code: output=fbcad13d8ef59ae6 input=34aaada95120cfaa]*/
317317
{
318318
PyObject *filename_bytes;
319319
const char *filename;
@@ -356,7 +356,7 @@ The default filename is ~/.history.
356356
static PyObject *
357357
readline_append_history_file_impl(PyObject *module, int nelements,
358358
PyObject *filename_obj)
359-
/*[clinic end generated code: output=5df06fc9da56e4e4 input=784b774db3a4b7c5]*/
359+
/*[clinic end generated code: output=5df06fc9da56e4e4 input=78a6061a8d3a0275]*/
360360
{
361361
if (nelements < 0)
362362
{
@@ -594,7 +594,7 @@ Set the word delimiters for completion.
594594

595595
static PyObject *
596596
readline_set_completer_delims_impl(PyObject *module, PyObject *string)
597-
/*[clinic end generated code: output=017e48e9704a2f64 input=4fd8ec0db0dbdae5]*/
597+
/*[clinic end generated code: output=017e48e9704a2f64 input=6c87bb1cbed7fcf1]*/
598598
{
599599
char *break_chars;
600600
PyObject *encoded = encode(string);
@@ -667,7 +667,7 @@ Remove history item given by its zero-based position.
667667

668668
static PyObject *
669669
readline_remove_history_item_impl(PyObject *module, int entry_number)
670-
/*[clinic end generated code: output=ab114f029208c7e8 input=1abf7add5c28f23c]*/
670+
/*[clinic end generated code: output=ab114f029208c7e8 input=847d7cc7e7c25852]*/
671671
{
672672
HIST_ENTRY *entry;
673673

@@ -704,7 +704,7 @@ pos is zero-based.
704704
static PyObject *
705705
readline_replace_history_item_impl(PyObject *module, int entry_number,
706706
PyObject *line)
707-
/*[clinic end generated code: output=f8cec2770ca125eb input=743ab534c4ac22f4]*/
707+
/*[clinic end generated code: output=f8cec2770ca125eb input=b44c8dcdc2dd87fe]*/
708708
{
709709
PyObject *encoded;
710710
HIST_ENTRY *old_entry;
@@ -747,7 +747,7 @@ Add an item to the history buffer.
747747

748748
static PyObject *
749749
readline_add_history_impl(PyObject *module, PyObject *string)
750-
/*[clinic end generated code: output=89047062042ac344 input=9679efa5b99bc972]*/
750+
/*[clinic end generated code: output=89047062042ac344 input=faa7053b8612513b]*/
751751
{
752752
PyObject *encoded = encode(string);
753753
if (encoded == NULL) {
@@ -792,7 +792,7 @@ Get the word delimiters for completion.
792792

793793
static PyObject *
794794
readline_get_completer_delims_impl(PyObject *module)
795-
/*[clinic end generated code: output=6b060280fa68ef43 input=e30288e365692aa8]*/
795+
/*[clinic end generated code: output=6b060280fa68ef43 input=80583cdf8176bcdd]*/
796796
{
797797
return decode(rl_completer_word_break_characters);
798798
}
@@ -870,7 +870,7 @@ Return the current contents of history item at one-based index.
870870

871871
static PyObject *
872872
readline_get_history_item_impl(PyObject *module, int idx)
873-
/*[clinic end generated code: output=83d3e53ea5f34b3d input=55ad7d4510969b16]*/
873+
/*[clinic end generated code: output=83d3e53ea5f34b3d input=2835b50c7bde705f]*/
874874
{
875875
HIST_ENTRY *hist_ent;
876876

@@ -911,7 +911,7 @@ Return the current (not the maximum) length of history.
911911

912912
static PyObject *
913913
readline_get_current_history_length_impl(PyObject *module)
914-
/*[clinic end generated code: output=436b294f12ba1e3f input=b093b842cdbf4313]*/
914+
/*[clinic end generated code: output=436b294f12ba1e3f input=22e9fd0abbc2fd8d]*/
915915
{
916916
return PyLong_FromLong((long)_py_get_history_length_lock_held());
917917
}
@@ -927,7 +927,7 @@ Return the current contents of the line buffer.
927927

928928
static PyObject *
929929
readline_get_line_buffer_impl(PyObject *module)
930-
/*[clinic end generated code: output=d22f9025ecad80e4 input=b7cfd10cfb4713ed]*/
930+
/*[clinic end generated code: output=d22f9025ecad80e4 input=8e02e0fe081feece]*/
931931
{
932932
return decode(rl_line_buffer);
933933
}
@@ -945,7 +945,7 @@ Clear the current readline history.
945945

946946
static PyObject *
947947
readline_clear_history_impl(PyObject *module)
948-
/*[clinic end generated code: output=1f2dbb0dfa5d5ebb input=3b3732c56bbcf587]*/
948+
/*[clinic end generated code: output=1f2dbb0dfa5d5ebb input=b2c6b11551593053]*/
949949
{
950950
clear_history();
951951
Py_RETURN_NONE;
@@ -967,7 +967,7 @@ Insert text into the line buffer at the cursor position.
967967

968968
static PyObject *
969969
readline_insert_text_impl(PyObject *module, PyObject *string)
970-
/*[clinic end generated code: output=4bf4e176f68750e0 input=d279c09ba6502577]*/
970+
/*[clinic end generated code: output=4bf4e176f68750e0 input=2f401f4316df33c2]*/
971971
{
972972
PyObject *encoded = encode(string);
973973
if (encoded == NULL) {
@@ -989,7 +989,7 @@ Change what's displayed on the screen to reflect contents of the line buffer.
989989

990990
static PyObject *
991991
readline_redisplay_impl(PyObject *module)
992-
/*[clinic end generated code: output=a8b9725827c3c34b input=8bf90322518dc0e2]*/
992+
/*[clinic end generated code: output=a8b9725827c3c34b input=5895fd014615ff58]*/
993993
{
994994
rl_redisplay();
995995
Py_RETURN_NONE;

0 commit comments

Comments
 (0)