From d1f5ccc75d8f01c421556fad7bdffc35ad691fe5 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 29 Dec 2002 23:46:40 +0000 Subject: 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). --- PC/config.c | 2 ++ PCbuild/pythoncore.dsp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/PC/config.c b/PC/config.c index 64eb962..af023bf 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 c6a13b2..5e98a7c 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 -- cgit v0.12