Commit 74e6ca3b authored by Guido van Rossum's avatar Guido van Rossum

Auto include patchlevel in version.

Replace regexp by regex.
parent d7139679
...@@ -24,12 +24,14 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ...@@ -24,12 +24,14 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
/* Configurable Python configuration file */ /* Configurable Python configuration file */
#define VERSION "0.9.4 beta" #include "patchlevel.h"
#define VERSION "0.9.%d alpha (%s)"
#ifdef __DATE__ #ifdef __DATE__
#define DATE __DATE__ #define DATE __DATE__
#else #else
#define DATE ">= Dec 16 1991" #define DATE ">= Dec 27 1991"
#endif #endif
#include <stdio.h> #include <stdio.h>
...@@ -46,7 +48,7 @@ initargs(p_argc, p_argv) ...@@ -46,7 +48,7 @@ initargs(p_argc, p_argv)
int *p_argc; int *p_argc;
char ***p_argv; char ***p_argv;
{ {
sprintf(version, "%s (%s)", VERSION, DATE); sprintf(version, VERSION, PATCHLEVEL, DATE);
#ifdef USE_STDWIN #ifdef USE_STDWIN
wargs(p_argc, p_argv); wargs(p_argc, p_argv);
...@@ -97,7 +99,7 @@ getpythonpath() ...@@ -97,7 +99,7 @@ getpythonpath()
/* Standard modules */ /* Standard modules */
extern void inittime(); extern void inittime();
extern void initmath(); extern void initmath();
extern void initregexp(); extern void initregex();
extern void initposix(); extern void initposix();
extern void initpwd(); extern void initpwd();
extern void initgrp(); extern void initgrp();
...@@ -143,7 +145,7 @@ struct { ...@@ -143,7 +145,7 @@ struct {
{"time", inittime}, {"time", inittime},
{"math", initmath}, {"math", initmath},
{"regexp", initregexp}, {"regex", initregex},
{"posix", initposix}, {"posix", initposix},
{"pwd", initpwd}, {"pwd", initpwd},
{"grp", initgrp}, {"grp", initgrp},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment