diff options
author | Guido van Rossum <guido@python.org> | 1991-12-30 01:43:49 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-30 01:43:49 (GMT) |
commit | 9b4e1b36f9a083424d7dd1afc54d46126120b3ea (patch) | |
tree | 6408cdde40fcc3ea224cd16e41da8c2ab83ef6f2 /Modules | |
parent | 6f4c43d4fd65076e81605622e39fa85a883a1872 (diff) | |
download | cpython-9b4e1b36f9a083424d7dd1afc54d46126120b3ea.zip cpython-9b4e1b36f9a083424d7dd1afc54d46126120b3ea.tar.gz cpython-9b4e1b36f9a083424d7dd1afc54d46126120b3ea.tar.bz2 |
Auto include patchlevel in version.
Replace regexp by regex.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/config.c.in | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in index 5be675b..4c83a0b 100644 --- a/Modules/config.c.in +++ b/Modules/config.c.in @@ -24,12 +24,14 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Configurable Python configuration file */ -#define VERSION "0.9.4 beta" +#include "patchlevel.h" + +#define VERSION "0.9.%d alpha (%s)" #ifdef __DATE__ #define DATE __DATE__ #else -#define DATE ">= Dec 16 1991" +#define DATE ">= Dec 27 1991" #endif #include <stdio.h> @@ -46,7 +48,7 @@ initargs(p_argc, p_argv) int *p_argc; char ***p_argv; { - sprintf(version, "%s (%s)", VERSION, DATE); + sprintf(version, VERSION, PATCHLEVEL, DATE); #ifdef USE_STDWIN wargs(p_argc, p_argv); @@ -97,7 +99,7 @@ getpythonpath() /* Standard modules */ extern void inittime(); extern void initmath(); -extern void initregexp(); +extern void initregex(); extern void initposix(); extern void initpwd(); extern void initgrp(); @@ -143,7 +145,7 @@ struct { {"time", inittime}, {"math", initmath}, - {"regexp", initregexp}, + {"regex", initregex}, {"posix", initposix}, {"pwd", initpwd}, {"grp", initgrp}, |