summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-08-12 15:28:52 (GMT)
committerGuido van Rossum <guido@python.org>1992-08-12 15:28:52 (GMT)
commit38fbf52b8e639978f457d490941ba300b7172f74 (patch)
tree3f6e5dcec9a0e8e1927fd8bae1f9fefa98072243 /Modules
parentdf72a655b9c51028205141c918431a3d6542d205 (diff)
downloadcpython-38fbf52b8e639978f457d490941ba300b7172f74.zip
cpython-38fbf52b8e639978f457d490941ba300b7172f74.tar.gz
cpython-38fbf52b8e639978f457d490941ba300b7172f74.tar.bz2
Made module regex optional; added optional module nis.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/config.c.in16
1 files changed, 14 insertions, 2 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index aa09c8a..c62ee34 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -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 */
};