summaryrefslogtreecommitdiffstats
path: root/Modules/config.c.in
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-19 16:27:42 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-19 16:27:42 (GMT)
commit450ed49a89b59daaf695eee1e3ae48197c1fdf5e (patch)
treed6334e8868dd6c737928daa9686a2d80743a4643 /Modules/config.c.in
parent8ec25b410c7718d118cc6496c5aabe6fbbc7544f (diff)
downloadcpython-450ed49a89b59daaf695eee1e3ae48197c1fdf5e.zip
cpython-450ed49a89b59daaf695eee1e3ae48197c1fdf5e.tar.gz
cpython-450ed49a89b59daaf695eee1e3ae48197c1fdf5e.tar.bz2
Change versions.
Save argv[0] in global argv0.
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index 4c83a0b..8855a50 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -26,12 +26,12 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "patchlevel.h"
-#define VERSION "0.9.%d alpha (%s)"
+#define VERSION "0.9.%d (%s)"
#ifdef __DATE__
#define DATE __DATE__
#else
-#define DATE ">= Dec 27 1991"
+#define DATE ">= 1 Jan 1992"
#endif
#include <stdio.h>
@@ -42,6 +42,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
char version[80];
+char *argv0;
+
/*ARGSUSED*/
void
initargs(p_argc, p_argv)
@@ -50,6 +52,8 @@ initargs(p_argc, p_argv)
{
sprintf(version, VERSION, PATCHLEVEL, DATE);
+ argv0 = **p_argv;
+
#ifdef USE_STDWIN
wargs(p_argc, p_argv);
#endif