summaryrefslogtreecommitdiffstats
path: root/Modules/main.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-07-21 02:33:38 (GMT)
committerGuido van Rossum <guido@python.org>1996-07-21 02:33:38 (GMT)
commitac56b03f9a931423714ab3a0e8cfae78f81f9b85 (patch)
tree6008001b5aea2364f71f1193c3be4093ac383204 /Modules/main.c
parent3be7140d31234860de5a2ea0764d97c4e29bec1f (diff)
downloadcpython-ac56b03f9a931423714ab3a0e8cfae78f81f9b85.zip
cpython-ac56b03f9a931423714ab3a0e8cfae78f81f9b85.tar.gz
cpython-ac56b03f9a931423714ab3a0e8cfae78f81f9b85.tar.bz2
New style names for getprogramname and getargcargv
Diffstat (limited to 'Modules/main.c')
-rw-r--r--Modules/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Modules/main.c b/Modules/main.c
index 0d17c34..8b78f36 100644
--- a/Modules/main.c
+++ b/Modules/main.c
@@ -38,10 +38,10 @@ extern char *Py_GetVersion();
extern char *Py_GetCopyright();
-/* For getprogramname(); set by main() */
+/* For Py_GetProgramName(); set by main() */
static char *argv0;
-/* For getargcargv(); set by main() */
+/* For Py_GetArgcArgv(); set by main() */
static char **orig_argv;
static int orig_argc;
@@ -88,9 +88,9 @@ main(argc, argv)
int inspect = 0;
int unbuffered = 0;
- orig_argc = argc; /* For getargcargv() */
+ orig_argc = argc; /* For Py_GetArgcArgv() */
orig_argv = argv;
- argv0 = argv[0]; /* For getprogramname() */
+ argv0 = argv[0]; /* For Py_GetProgramName() */
if ((p = getenv("PYTHONDEBUG")) && *p != '\0')
Py_DebugFlag = 1;
@@ -223,7 +223,7 @@ main(argc, argv)
(currently _tkinter.c and importdl.c). */
char *
-getprogramname()
+Py_GetProgramName()
{
return argv0;
}
@@ -233,7 +233,7 @@ getprogramname()
This is rare, but it is needed by the secureware extension. */
void
-getargcargv(argc,argv)
+Py_GetArgcArgv(argc, argv)
int *argc;
char ***argv;
{