[Python-checkins] CVS: python/dist/src/Modules main.c,1.49,1.50
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 01 Mar 2001 22:18:05 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv11045
Modified Files:
main.c
Log Message:
RISCOS changes by dschwertberger.
Index: main.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/main.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -r1.49 -r1.50
*** main.c 2001/02/23 16:46:39 1.49
--- main.c 2001/03/02 06:18:03 1.50
***************
*** 27,30 ****
--- 27,35 ----
static int orig_argc;
+ /* For my_readline when running under RISCOS */
+ #ifdef RISCOS
+ extern int Py_RISCOSWimpFlag;
+ #endif
+
/* Short usage message (with %s for argv0) */
static char *usage_line =
***************
*** 99,102 ****
--- 104,111 ----
orig_argv = argv;
+ #ifdef RISCOS
+ Py_RISCOSWimpFlag = 0;
+ #endif
+
if ((p = getenv("PYTHONINSPECT")) && *p != '\0')
inspect = 1;
***************
*** 106,110 ****
--- 115,123 ----
PySys_ResetWarnOptions();
+ #ifdef RISCOS
+ while ((c = getopt(argc, argv, "c:diOStuUvwxXhV")) != EOF) {
+ #else
while ((c = _PyOS_GetOpt(argc, argv, "c:diOStuUvxXhVW:")) != EOF) {
+ #endif
if (c == 'c') {
/* -c is the last option; following arguments
***************
*** 151,154 ****
--- 164,173 ----
break;
+ #ifdef RISCOS
+ case 'w':
+ Py_RISCOSWimpFlag = 1;
+ break;
+ #endif
+
case 'x':
skipfirstline = 1;
***************
*** 302,305 ****
--- 321,328 ----
Py_Finalize();
+ #ifdef RISCOS
+ if(Py_RISCOSWimpFlag)
+ fprintf(stderr, "\x0cq\x0c"); /* make frontend quit */
+ #endif
#ifdef __INSURE__