Renamed Py_input_hook to PyOS_InputHook.

Also cleaned out some CR's left by the VC++ editor.
This commit is contained in:
Guido van Rossum 1997-08-11 18:57:29 +00:00
parent 0357d02eab
commit 44620646fd
4 changed files with 9 additions and 9 deletions

View 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)