mirror of
https://github.com/python/cpython.git
synced 2025-01-23 01:32:36 +08:00
Made module regex optional; added optional module nis.
This commit is contained in:
parent
df72a655b9
commit
38fbf52b8e
@ -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 */
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user