]> granicus.if.org Git - python/commitdiff
Teach Windows build about the _weakref module.
authorTim Peters <tim.peters@gmail.com>
Fri, 2 Feb 2001 00:07:07 +0000 (00:07 +0000)
committerTim Peters <tim.peters@gmail.com>
Fri, 2 Feb 2001 00:07:07 +0000 (00:07 +0000)
Modules/_weakref.c
PC/config.c
PCbuild/pythoncore.dsp

index 3c03c3c19ba8b9efe1242dcbd12661f06531a3c6..dcbcb6b613d80f3c5dbfa8dc495115fc77a6a8d1 100644 (file)
@@ -728,7 +728,7 @@ weakref_functions[] =  {
 };
 
 
-void
+DL_EXPORT(void)
 init_weakref(void)
 {
     PyObject *m;
index c96eb26af1e94c472ac3838ed57c4813656fb45f..2044688009bd21b180492f8c22a891e7aae8552e 100644 (file)
@@ -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 -- */
index 256de83220c23618787ab73895395a59dc3e121b..f1068288fff2821a601fbb63931a5cddf9802618 100644 (file)
@@ -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"