From: Tim Peters Date: Fri, 2 Feb 2001 00:07:07 +0000 (+0000) Subject: Teach Windows build about the _weakref module. X-Git-Tag: v2.1a2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=747d5b63db5db038f514409e1b783b244c9e1742;p=python Teach Windows build about the _weakref module. --- diff --git a/Modules/_weakref.c b/Modules/_weakref.c index 3c03c3c19b..dcbcb6b613 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 c96eb26af1..2044688009 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 256de83220..f1068288ff 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"