From 747d5b63db5db038f514409e1b783b244c9e1742 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 2 Feb 2001 00:07:07 +0000 Subject: Teach Windows build about the _weakref module. --- Modules/_weakref.c | 2 +- PC/config.c | 2 ++ PCbuild/pythoncore.dsp | 15 +++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) 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" -- cgit v0.12