Kaydet (Commit) 38fbf52b authored tarafından Guido van Rossum's avatar Guido van Rossum

Made module regex optional; added optional module nis.

üst df72a655
...@@ -117,7 +117,6 @@ getpythonpath() ...@@ -117,7 +117,6 @@ getpythonpath()
/* Standard modules */ /* Standard modules */
extern void inittime(); extern void inittime();
extern void initmath(); extern void initmath();
extern void initregex();
extern void initposix(); extern void initposix();
extern void initpwd(); extern void initpwd();
extern void initgrp(); extern void initgrp();
...@@ -146,6 +145,9 @@ extern void initfl(); ...@@ -146,6 +145,9 @@ extern void initfl();
extern void initpanel(); extern void initpanel();
#endif #endif
#endif #endif
#ifdef USE_REGEX
extern void initregex();
#endif
#ifdef USE_STDWIN #ifdef USE_STDWIN
extern void initstdwin(); extern void initstdwin();
#endif #endif
...@@ -158,6 +160,9 @@ extern void initcd(); ...@@ -158,6 +160,9 @@ extern void initcd();
#ifdef USE_THREAD #ifdef USE_THREAD
extern void initthread(); extern void initthread();
#endif #endif
#ifdef USE_NIS
extern void initnis();
#endif
struct { struct {
char *name; char *name;
...@@ -168,7 +173,6 @@ struct { ...@@ -168,7 +173,6 @@ struct {
{"time", inittime}, {"time", inittime},
{"math", initmath}, {"math", initmath},
{"regex", initregex},
{"posix", initposix}, {"posix", initposix},
{"pwd", initpwd}, {"pwd", initpwd},
{"grp", initgrp}, {"grp", initgrp},
...@@ -204,6 +208,10 @@ struct { ...@@ -204,6 +208,10 @@ struct {
#endif #endif
#endif #endif
#ifdef USE_REGEX
{"regex", initregex},
#endif
#ifdef USE_STDWIN #ifdef USE_STDWIN
{"stdwin", initstdwin}, {"stdwin", initstdwin},
#endif #endif
...@@ -220,5 +228,9 @@ struct { ...@@ -220,5 +228,9 @@ struct {
{"thread", initthread}, {"thread", initthread},
#endif #endif
#ifdef USE_NIS
{"nis", initnis},
#endif
{0, 0} /* Sentinel */ {0, 0} /* Sentinel */
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment