diff options
author | Thomas Wouters <thomas@python.org> | 2000-07-22 19:20:54 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2000-07-22 19:20:54 (GMT) |
commit | 23c9e0024af99379ae517b016b874d57127e9a97 (patch) | |
tree | 8b9550548b9af667e20b8aaaae03ac54d38d6f70 /Parser/myreadline.c | |
parent | f70ef4f8606f99744252a804229d53a4d97601c1 (diff) | |
download | cpython-23c9e0024af99379ae517b016b874d57127e9a97.zip cpython-23c9e0024af99379ae517b016b874d57127e9a97.tar.gz cpython-23c9e0024af99379ae517b016b874d57127e9a97.tar.bz2 |
Mass ANSIfication.
Work around intrcheck.c's desire to pass 'PyErr_CheckSignals' to
'Py_AddPendingCall' by providing a (static) wrapper function that has the
right number of arguments.
Diffstat (limited to 'Parser/myreadline.c')
-rw-r--r-- | Parser/myreadline.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/Parser/myreadline.c b/Parser/myreadline.c index bb35000..a996a6e 100644 --- a/Parser/myreadline.c +++ b/Parser/myreadline.c @@ -23,16 +23,13 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include <limits.h> #endif -int (*PyOS_InputHook)() = NULL; +int (*PyOS_InputHook)(void) = NULL; /* This function restarts a fgets() after an EINTR error occurred except if PyOS_InterruptOccurred() returns true. */ static int -my_fgets(buf, len, fp) - char *buf; - int len; - FILE *fp; +my_fgets(char *buf, int len, FILE *fp) { char *p; for (;;) { @@ -65,8 +62,7 @@ my_fgets(buf, len, fp) /* Readline implementation using fgets() */ char * -PyOS_StdioReadline(prompt) - char *prompt; +PyOS_StdioReadline(char *prompt) { size_t n; char *p; @@ -124,8 +120,7 @@ char *(*PyOS_ReadlineFunctionPointer)(char *); /* Interface used by tokenizer.c and bltinmodule.c */ char * -PyOS_Readline(prompt) - char *prompt; +PyOS_Readline(char *prompt) { char *rv; if (PyOS_ReadlineFunctionPointer == NULL) { |