Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
44620646
Commit
44620646
authored
Aug 11, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed Py_input_hook to PyOS_InputHook.
Also cleaned out some CR's left by the VC++ editor.
parent
0357d02e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
Modules/_tkinter.c
Modules/_tkinter.c
+3
-3
Modules/readline.c
Modules/readline.c
+2
-2
PC/python_nt.def
PC/python_nt.def
+1
-1
Parser/myreadline.c
Parser/myreadline.c
+3
-3
No files found.
Modules/_tkinter.c
View file @
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
View file @
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
View file @
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
View file @
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