[Python-checkins] CVS: python/dist/src/Parser myreadline.c,2.25,2.26

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 01 Mar 2001 22:29:53 -0800


Update of /cvsroot/python/python/dist/src/Parser
In directory usw-pr-cvs1:/tmp/cvs-serv12432

Modified Files:
	myreadline.c 
Log Message:
RISCOS changes by dschwertberger.


Index: myreadline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/myreadline.c,v
retrieving revision 2.25
retrieving revision 2.26
diff -C2 -r2.25 -r2.26
*** myreadline.c	2000/09/26 05:46:01	2.25
--- myreadline.c	2001/03/02 06:29:51	2.26
***************
*** 14,17 ****
--- 14,21 ----
  int (*PyOS_InputHook)(void) = NULL;
  
+ #ifdef RISCOS
+ int Py_RISCOSWimpFlag;
+ #endif
+ 
  /* This function restarts a fgets() after an EINTR error occurred
     except if PyOS_InterruptOccurred() returns true. */
***************
*** 59,64 ****
--- 63,77 ----
  		return NULL;
  	fflush(stdout);
+ #ifndef RISCOS
  	if (prompt)
  		fprintf(stderr, "%s", prompt);
+ #else
+ 	if (prompt) {
+ 		if(Py_RISCOSWimpFlag)
+ 			fprintf(stderr, "\x0cr%s\x0c", prompt);
+ 		else
+ 			fprintf(stderr, "%s", prompt);
+ 	}
+ #endif
  	fflush(stderr);
  	switch (my_fgets(p, (int)n, stdin)) {