Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
74e6ca3b
Commit
74e6ca3b
authored
Dec 30, 1991
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto include patchlevel in version.
Replace regexp by regex.
parent
d7139679
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Modules/config.c.in
Modules/config.c.in
+7
-5
No files found.
Modules/config.c.in
View file @
74e6ca3b
...
...
@@ -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 initregex
p
();
extern void initregex();
extern void initposix();
extern void initpwd();
extern void initgrp();
...
...
@@ -143,7 +145,7 @@ struct {
{"time", inittime},
{"math", initmath},
{"regex
p", initregexp
},
{"regex
", initregex
},
{"posix", initposix},
{"pwd", initpwd},
{"grp", initgrp},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment