From 38fbf52b8e639978f457d490941ba300b7172f74 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 12 Aug 1992 15:28:52 +0000 Subject: Made module regex optional; added optional module nis. --- Modules/config.c.in | 16 ++++++++++++++-- 1 file 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 */ }; -- cgit v0.12