]> granicus.if.org Git - python/commitdiff
Renamed Py_input_hook to PyOS_InputHook.
authorGuido van Rossum <guido@python.org>
Mon, 11 Aug 1997 18:57:29 +0000 (18:57 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 11 Aug 1997 18:57:29 +0000 (18:57 +0000)
Also cleaned out some CR's left by the VC++ editor.

Modules/_tkinter.c
Modules/readline.c
PC/python_nt.def
Parser/myreadline.c

index f45e29c6f932c8d8a3eddc0e021812966706d3cb..c3d1b61ce786db3acf0e7c476162852676d1549d 100644 (file)
@@ -1480,7 +1480,7 @@ void
 init_tkinter()
 {
 #ifndef WIN32
-       extern int (*Py_input_hook) ();
+       extern int (*PyOS_InputHook) ();
 #endif
        PyObject *m, *d;
 
@@ -1506,8 +1506,8 @@ init_tkinter()
        ins_string(d, "TCL_VERSION", TCL_VERSION);
 
 #ifndef WIN32
-       if (Py_input_hook == NULL)
-               Py_input_hook = EventHook;
+       if (PyOS_InputHook == NULL)
+               PyOS_InputHook = EventHook;
 #endif
 
        if (PyErr_Occurred())
index 8927630eb0bd9540277c4c467535954b6ece818e..a1ba13d5ef72587a2e167287246ff587b491ba17 100644 (file)
@@ -12,7 +12,7 @@ extern "C" {
 #include <signal.h>
 
 /* Routines needed from outside (but not declared in a header file). */
-extern int (*Py_input_hook)();
+extern int (*PyOS_InputHook)();
 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_hook;
+       rl_event_hook = PyOS_InputHook;
        p = readline(prompt);
        signal(SIGINT, old_inthandler);
        if (p == NULL) {
index 038d3d09f5cf574565074dc14a157a8ab6798d0d..786d072dc8535f7f1105561dc66fbd86e5632627 100644 (file)
@@ -54,7 +54,7 @@ EXPORTS
        PySlice_Type DATA
        Py_InteractiveFlag DATA
        PyCObject_Type DATA
-       Py_input_hook DATA
+       PyOS_InputHook DATA
        PyOS_ReadlineFunctionPointer DATA
 
        _PyObject_New
index 37ee902b8d498c2fbc7fd8a8000f41df8f782b8d..24bb18c653dc8cf289cb4a794795a59a8cd16151 100644 (file)
@@ -51,7 +51,7 @@ PERFORMANCE OF THIS SOFTWARE.
 #include "mymalloc.h"
 #include "intrcheck.h"
 
-int (*Py_input_hook)() = NULL;
+int (*PyOS_InputHook)() = 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_hook != NULL)
-                       (void)(Py_input_hook)();
+               if (PyOS_InputHook != NULL)
+                       (void)(PyOS_InputHook)();
                errno = 0;
                p = fgets(buf, len, fp);
                if (p != NULL)