]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
moved stuff around to resemble main.c
authorGuido van Rossum <guido@python.org>
Fri, 4 Aug 1995 04:10:43 +0000 (04:10 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 4 Aug 1995 04:10:43 +0000 (04:10 +0000)
Python/frozenmain.c

index 5ad46d74c3c31e39bd50fb55d94ad13bbb80cb8f..15e61448a727b8940c3947e6a5009550e7460240 100644 (file)
@@ -26,17 +26,20 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
 #include "Python.h"
 
-extern char *getenv();
+extern int Py_DebugFlag; /* For parser.c, declared in pythonrun.c */
+extern int Py_VerboseFlag; /* For import.c, declared in pythonrun.c */
+extern int Py_SuppressPrintingFlag; /* For ceval.c, declared in pythonrun.c */
 
+/* Subroutines that live in their own file */
 extern char *getversion();
 extern char *getcopyright();
 
-extern int Py_DebugFlag;
-extern int Py_VerboseFlag;
-extern int Py_SuppressPrintingFlag;
-
+/* For getprogramname(); set by main() */
 static char *argv0;
 
+/* Main program */
+
+int
 main(argc, argv)
        int argc;
        char **argv;