Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
6c06cd5f
Kaydet (Commit)
6c06cd5f
authored
Agu 16, 2004
tarafından
Skip Montanaro
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix a couple problems with the last patch picked up by Michael Hudson
üst
7ec75848
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
readline.c
Modules/readline.c
+8
-12
No files found.
Modules/readline.c
Dosyayı görüntüle @
6c06cd5f
...
...
@@ -304,11 +304,9 @@ py_remove_history(PyObject *self, PyObject *args)
return
NULL
;
entry
=
remove_history
(
entry_number
);
if
(
!
entry
)
{
char
buf
[
80
];
PyOS_snprintf
(
buf
,
sizeof
(
buf
),
"No history item at position %i"
,
entry_number
);
PyErr_SetString
(
PyExc_ValueError
,
buf
);
PyErr_Format
(
PyExc_ValueError
,
"No history item at position %d"
,
entry_number
);
return
NULL
;
}
/* free memory allocated for the history entry */
...
...
@@ -323,7 +321,7 @@ py_remove_history(PyObject *self, PyObject *args)
}
PyDoc_STRVAR
(
doc_remove_history
,
"remove_history(pos) -> None
\n
\
"remove_history
_item
(pos) -> None
\n
\
remove history item given by its position"
);
static
PyObject
*
...
...
@@ -338,11 +336,9 @@ py_replace_history(PyObject *self, PyObject *args)
}
old_entry
=
replace_history_entry
(
entry_number
,
line
,
(
void
*
)
NULL
);
if
(
!
old_entry
)
{
char
buf
[
80
];
PyOS_snprintf
(
buf
,
sizeof
(
buf
),
"No history item at position %i"
,
entry_number
);
PyErr_SetString
(
PyExc_ValueError
,
buf
);
PyErr_Format
(
PyExc_ValueError
,
"No history item at position %d"
,
entry_number
);
return
NULL
;
}
/* free memory allocated for the old history entry */
...
...
@@ -357,7 +353,7 @@ py_replace_history(PyObject *self, PyObject *args)
}
PyDoc_STRVAR
(
doc_replace_history
,
"replace_history(pos, line) -> None
\n
\
"replace_history
_item
(pos, line) -> None
\n
\
replaces history item given by its position with contents of line"
);
/* Add a line to the history buffer */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment