A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2002-October/030401.html below:

[Python-checkins] python/dist/src/Parser pgenmain.c,2.27,2.28

[Python-checkins] python/dist/src/Parser pgenmain.c,2.27,2.28montanaro@users.sourceforge.net montanaro@users.sourceforge.net
Sat, 26 Oct 2002 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';





RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4