diff options
author | Skip Montanaro <skip@pobox.com> | 2002-10-27 01:59:21 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2002-10-27 01:59:21 (GMT) |
commit | 35f63a860bde572d54364dc53ac0171c6649a954 (patch) | |
tree | 4d88038aee0093d165adb066094ac5fc1f6eb16e /Parser | |
parent | 8c1402869ba0cb0a690a5168ac4067483d39e02e (diff) | |
download | cpython-35f63a860bde572d54364dc53ac0171c6649a954.zip cpython-35f63a860bde572d54364dc53ac0171c6649a954.tar.gz cpython-35f63a860bde572d54364dc53ac0171c6649a954.tar.bz2 |
Change PyOS_Readline declaration to match the recent change to myreadline.c
(see Patch 512981). I changed stdin to sys_stdin in the body of the
function, but did not change stderr to sys_stdout, though I suspect that may
be the correct course. I don't know the code involved well enough to judge.
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/pgenmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c index 63be88f..7e86ea6 100644 --- a/Parser/pgenmain.c +++ b/Parser/pgenmain.c @@ -165,7 +165,7 @@ guesstabsize(char *path) /* No-nonsense my_readline() for tokenizer.c */ char * -PyOS_Readline(char *prompt) +PyOS_Readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt) { size_t n = 1000; char *p = PyMem_MALLOC(n); @@ -173,7 +173,7 @@ PyOS_Readline(char *prompt) if (p == NULL) return NULL; fprintf(stderr, "%s", prompt); - q = fgets(p, n, stdin); + q = fgets(p, n, sys_stdin); if (q == NULL) { *p = '\0'; return p; |