summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-02-02 00:07:07 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-02-02 00:07:07 (GMT)
commit747d5b63db5db038f514409e1b783b244c9e1742 (patch)
tree29f2bb6c1303d0270295ea4128db5e3d2d259ed0
parent2492a20579ab1b395d2d3a65b2f9922eb86f9021 (diff)
downloadcpython-747d5b63db5db038f514409e1b783b244c9e1742.zip
cpython-747d5b63db5db038f514409e1b783b244c9e1742.tar.gz
cpython-747d5b63db5db038f514409e1b783b244c9e1742.tar.bz2
Teach Windows build about the _weakref module.
-rw-r--r--Modules/_weakref.c2
-rw-r--r--PC/config.c2
-rw-r--r--PCbuild/pythoncore.dsp15
3 files changed, 18 insertions, 1 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c
index 3c03c3c..dcbcb6b 100644
--- a/Modules/_weakref.c
+++ b/Modules/_weakref.c
@@ -728,7 +728,7 @@ weakref_functions[] = {
};
-void
+DL_EXPORT(void)
init_weakref(void)
{
PyObject *m;
diff --git a/PC/config.c b/PC/config.c
index c96eb26..2044688 100644
--- a/PC/config.c
+++ b/PC/config.c
@@ -43,6 +43,7 @@ extern void init_locale(void);
#endif
extern void init_codecs(void);
extern void initxreadlines(void);
+extern void init_weakref(void);
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
/* -- ADDMODULE MARKER 1 -- */
@@ -95,6 +96,7 @@ struct _inittab _PyImport_Inittab[] = {
{"_codecs", init_codecs},
{"xreadlines", initxreadlines},
+ {"_weakref", init_weakref},
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
/* -- ADDMODULE MARKER 2 -- */
diff --git a/PCbuild/pythoncore.dsp b/PCbuild/pythoncore.dsp
index 256de83..f106828 100644
--- a/PCbuild/pythoncore.dsp
+++ b/PCbuild/pythoncore.dsp
@@ -195,6 +195,21 @@ SOURCE=..\Modules\_localemodule.c
# End Source File
# Begin Source File
+SOURCE=..\Modules\_weakref.c
+
+!IF "$(CFG)" == "pythoncore - Win32 Release"
+
+!ELSEIF "$(CFG)" == "pythoncore - Win32 Debug"
+
+!ELSEIF "$(CFG)" == "pythoncore - Win32 Alpha Debug"
+
+!ELSEIF "$(CFG)" == "pythoncore - Win32 Alpha Release"
+
+!ENDIF
+
+# End Source File
+# Begin Source File
+
SOURCE=..\Objects\abstract.c
!IF "$(CFG)" == "pythoncore - Win32 Release"