]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Made module regex optional; added optional module nis.
authorGuido van Rossum <guido@python.org>
Wed, 12 Aug 1992 15:28:52 +0000 (15:28 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Aug 1992 15:28:52 +0000 (15:28 +0000)
Modules/config.c.in

index aa09c8a9158e1d008dd6faa9c62daa06da2a9789..c62ee34a3792e924e5eb5194c8af2068eef0ac07 100644 (file)
@@ -117,7 +117,6 @@ getpythonpath()
 /* Standard modules */
 extern void inittime();
 extern void initmath();
-extern void initregex();
 extern void initposix();
 extern void initpwd();
 extern void initgrp();
@@ -146,6 +145,9 @@ extern void initfl();
 extern void initpanel();
 #endif
 #endif
+#ifdef USE_REGEX
+extern void initregex();
+#endif
 #ifdef USE_STDWIN
 extern void initstdwin();
 #endif
@@ -158,6 +160,9 @@ extern void initcd();
 #ifdef USE_THREAD
 extern void initthread();
 #endif
+#ifdef USE_NIS
+extern void initnis();
+#endif
 
 struct {
        char *name;
@@ -168,7 +173,6 @@ struct {
 
        {"time",        inittime},
        {"math",        initmath},
-       {"regex",       initregex},
        {"posix",       initposix},
        {"pwd",         initpwd},
        {"grp",         initgrp},
@@ -204,6 +208,10 @@ struct {
 #endif
 #endif
 
+#ifdef USE_REGEX
+       {"regex",       initregex},
+#endif
+
 #ifdef USE_STDWIN
        {"stdwin",      initstdwin},
 #endif
@@ -220,5 +228,9 @@ struct {
        {"thread",      initthread},
 #endif
 
+#ifdef USE_NIS
+       {"nis",         initnis},
+#endif
+
        {0,             0}              /* Sentinel */
 };