]> granicus.if.org Git - python/commitdiff
Taught the Windows build about _randommodule.c. This is compiled
authorTim Peters <tim.peters@gmail.com>
Sun, 29 Dec 2002 23:46:40 +0000 (23:46 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 29 Dec 2002 23:46:40 +0000 (23:46 +0000)
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
PCbuild/pythoncore.dsp

index 64eb9623d659d46f914c91d36d81dcf4e8c78e8a..af023bf5b0823cb5185310ea7b23fc31b99557c0 100644 (file)
@@ -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},
 
index c6a13b2c4294255e465153c7eb0d600c949d8ceb..5e98a7ca0aa591a517c202071e525d0fb65aaec1 100644 (file)
@@ -105,6 +105,10 @@ SOURCE=..\Modules\_localemodule.c
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\Modules\_randommodule.c\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=..\Modules\_weakref.c\r
 # End Source File\r
 # Begin Source File\r