Also cleaned out some CR's left by the VC++ editor.
init_tkinter()
{
#ifndef WIN32
- extern int (*Py_input_hook) ();
+ extern int (*PyOS_InputHook) ();
#endif
PyObject *m, *d;
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())
#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();
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) {
PySlice_Type DATA
Py_InteractiveFlag DATA
PyCObject_Type DATA
- Py_input_hook DATA
+ PyOS_InputHook DATA
PyOS_ReadlineFunctionPointer DATA
_PyObject_New
#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. */
{
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)