[Python-checkins] python/dist/src/Parser pgenmain.c,2.27,2.28
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
2002年10月26日 18:59:24 -0700
Update of /cvsroot/python/python/dist/src/Parser
In directory usw-pr-cvs1:/tmp/cvs-serv27793
Modified Files:
pgenmain.c
Log Message:
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.
Index: pgenmain.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/pgenmain.c,v
retrieving revision 2.27
retrieving revision 2.28
diff -C2 -d -r2.27 -r2.28
*** pgenmain.c 9 Jul 2002 02:57:01 -0000 2.27
--- pgenmain.c 27 Oct 2002 01:59:21 -0000 2.28
***************
*** 166,170 ****
char *
! PyOS_Readline(char *prompt)
{
size_t n = 1000;
--- 166,170 ----
char *
! PyOS_Readline(FILE *sys_stdin, FILE *sys_stdout, char *prompt)
{
size_t n = 1000;
***************
*** 174,178 ****
return NULL;
fprintf(stderr, "%s", prompt);
! q = fgets(p, n, stdin);
if (q == NULL) {
*p = '0円';
--- 174,178 ----
return NULL;
fprintf(stderr, "%s", prompt);
! q = fgets(p, n, sys_stdin);
if (q == NULL) {
*p = '0円';