]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Auto include patchlevel in version.
authorGuido van Rossum <guido@python.org>
Mon, 30 Dec 1991 01:43:49 +0000 (01:43 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 30 Dec 1991 01:43:49 +0000 (01:43 +0000)
Replace regexp by regex.

Modules/config.c.in

index 5be675b44692cff6ea654faa82fc35bf9c21bd5d..4c83a0b7e38735cd68185cf68c182c5c0ee5c4a4 100644 (file)
@@ -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},