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
44620646
Kaydet (Commit)
44620646
authored
Agu 11, 1997
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Renamed Py_input_hook to PyOS_InputHook.
Also cleaned out some CR's left by the VC++ editor.
üst
0357d02e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
_tkinter.c
Modules/_tkinter.c
+3
-3
readline.c
Modules/readline.c
+2
-2
python_nt.def
PC/python_nt.def
+1
-1
myreadline.c
Parser/myreadline.c
+3
-3
No files found.
Modules/_tkinter.c
Dosyayı görüntüle @
44620646
...
...
@@ -1480,7 +1480,7 @@ void
init_tkinter
()
{
#ifndef WIN32
extern
int
(
*
Py
_input_h
ook
)
();
extern
int
(
*
Py
OS_InputH
ook
)
();
#endif
PyObject
*
m
,
*
d
;
...
...
@@ -1506,8 +1506,8 @@ init_tkinter()
ins_string
(
d
,
"TCL_VERSION"
,
TCL_VERSION
);
#ifndef WIN32
if
(
Py
_input_h
ook
==
NULL
)
Py
_input_h
ook
=
EventHook
;
if
(
Py
OS_InputH
ook
==
NULL
)
Py
OS_InputH
ook
=
EventHook
;
#endif
if
(
PyErr_Occurred
())
...
...
Modules/readline.c
Dosyayı görüntüle @
44620646
...
...
@@ -12,7 +12,7 @@ extern "C" {
#include <signal.h>
/* Routines needed from outside (but not declared in a header file). */
extern
int
(
*
Py
_input_h
ook
)();
extern
int
(
*
Py
OS_InputH
ook
)();
extern
char
*
readline
();
extern
int
rl_initialize
();
extern
int
rl_insert
();
...
...
@@ -98,7 +98,7 @@ PyOS_GnuReadline(prompt)
signal
(
SIGINT
,
old_inthandler
);
return
NULL
;
}
rl_event_hook
=
Py
_input_h
ook
;
rl_event_hook
=
Py
OS_InputH
ook
;
p
=
readline
(
prompt
);
signal
(
SIGINT
,
old_inthandler
);
if
(
p
==
NULL
)
{
...
...
PC/python_nt.def
Dosyayı görüntüle @
44620646
...
...
@@ -54,7 +54,7 @@ EXPORTS
PySlice_Type DATA
Py_InteractiveFlag DATA
PyCObject_Type DATA
Py
_input_h
ook DATA
Py
OS_InputH
ook DATA
PyOS_ReadlineFunctionPointer DATA
_PyObject_New
...
...
Parser/myreadline.c
Dosyayı görüntüle @
44620646
...
...
@@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
#include "mymalloc.h"
#include "intrcheck.h"
int
(
*
Py
_input_h
ook
)()
=
NULL
;
int
(
*
Py
OS_InputH
ook
)()
=
NULL
;
/* This function restarts a fgets() after an EINTR error occurred
except if PyOS_InterruptOccurred() returns true. */
...
...
@@ -64,8 +64,8 @@ my_fgets(buf, len, fp)
{
char
*
p
;
for
(;;)
{
if
(
Py
_input_h
ook
!=
NULL
)
(
void
)(
Py
_input_h
ook
)();
if
(
Py
OS_InputH
ook
!=
NULL
)
(
void
)(
Py
OS_InputH
ook
)();
errno
=
0
;
p
=
fgets
(
buf
,
len
,
fp
);
if
(
p
!=
NULL
)
...
...
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