diff Python/pythonmain.c @ 618:189ee3beebb5 legacy-trunk

Added -d option (increments debugging variable); mostly to get rid of a compiler warning.
author Guido van Rossum <guido@python.org>
date Sun, 19 Jan 1992 16:48:36 +0000
parents 0868176365d7
children 2f95a01d6c1f
line wrap: on
line diff
--- a/Python/pythonmain.c	Sun Jan 19 16:33:51 1992 +0000
+++ b/Python/pythonmain.c	Sun Jan 19 16:48:36 1992 +0000
@@ -41,9 +41,7 @@
 
 extern grammar gram; /* From graminit.c */
 
-#ifdef DEBUG
 int debugging; /* Needed by parser.c */
-#endif
 
 /* Interface to getopt(): */
 extern int optind;
@@ -62,7 +60,7 @@
 	
 	initargs(&argc, &argv); /* Defined in config*.c */
 
-	while ((c = getopt(argc, argv, "c:")) != EOF) {
+	while ((c = getopt(argc, argv, "c:d")) != EOF) {
 		if (c == 'c') {
 			/* -c is the last option; following arguments
 			   that look like options are left for the
@@ -76,6 +74,10 @@
 		
 		switch (c) {
 
+		case 'd':
+			debugging++;
+			break;
+
 		/* This space reserved for other options */
 
 		default: