summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-01-02 13:50:48 (GMT)
committerGuido van Rossum <guido@python.org>1991-01-02 13:50:48 (GMT)
commit6607f449be219742f12e5b6d9f00e15314af162d (patch)
tree953b70ca53409bce7b16f76bada917dd6d47be4b /Modules
parent65a9620fa24d03d74c980403848faf1a47787d28 (diff)
downloadcpython-6607f449be219742f12e5b6d9f00e15314af162d.zip
cpython-6607f449be219742f12e5b6d9f00e15314af162d.tar.gz
cpython-6607f449be219742f12e5b6d9f00e15314af162d.tar.bz2
Add backward compatibility with -s.
Add initregexp() call.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/config.c.in9
1 files changed, 8 insertions, 1 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index 60f2cf2..1ddc518 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -15,7 +15,13 @@ initargs(p_argc, p_argv)
{
extern char *getenv();
char *display;
-
+
+ /* Ignore an initial argument of '-s', for backward compatibility */
+ if (*p_argc > 1 && strcmp((*p_argv)[1], "-s") == 0) {
+ (*p_argv)[1] = (*p_argv)[0];
+ (*p_argc)--, (*p_argv)++;
+ }
+
/* Assume we have to initialize stdwin if either of the following
conditions holds:
- the environment variable $DISPLAY is set
@@ -45,6 +51,7 @@ initcalls()
{
inittime();
initmath();
+ initregexp();
initposix();
#ifdef USE_AUDIO
initaudio();