From: Tim Peters Date: Sun, 29 Dec 2002 23:46:40 +0000 (+0000) Subject: Taught the Windows build about _randommodule.c. This is compiled X-Git-Tag: v2.3c1~2844 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d1f5ccc75d8f01c421556fad7bdffc35ad691fe5;p=thirdparty%2FPython%2Fcpython.git Taught the Windows build about _randommodule.c. This is compiled into the core DLL, since it's not much code and lots of stuff uses it (e.g., try getting a tempfile name without it). --- diff --git a/PC/config.c b/PC/config.c index 64eb9623d659..af023bf5b082 100644 --- a/PC/config.c +++ b/PC/config.c @@ -43,6 +43,7 @@ extern void initxreadlines(void); extern void init_weakref(void); extern void init_hotshot(void); extern void initxxsubtype(void); +extern void init_random(void); /* XXX tim: what's the purpose of ADDMODULE MARKER? */ /* -- ADDMODULE MARKER 1 -- */ @@ -94,6 +95,7 @@ struct _inittab _PyImport_Inittab[] = { {"xreadlines", initxreadlines}, {"_weakref", init_weakref}, {"_hotshot", init_hotshot}, + {"_random", init_random}, {"xxsubtype", initxxsubtype}, diff --git a/PCbuild/pythoncore.dsp b/PCbuild/pythoncore.dsp index c6a13b2c4294..5e98a7ca0aa5 100644 --- a/PCbuild/pythoncore.dsp +++ b/PCbuild/pythoncore.dsp @@ -105,6 +105,10 @@ SOURCE=..\Modules\_localemodule.c # End Source File # Begin Source File +SOURCE=..\Modules\_randommodule.c +# End Source File +# Begin Source File + SOURCE=..\Modules\_weakref.c # End Source File # Begin Source File