[Python-checkins] r46054 - python/trunk/Mac/Modules/cf/_CFmodule.c
ronald.oussoren
python-checkins at python.org
Sat May 20 08:17:02 CEST 2006
Author: ronald.oussoren
Date: Sat May 20 08:17:01 2006
New Revision: 46054
Modified:
python/trunk/Mac/Modules/cf/_CFmodule.c
Log:
Fix bug #1000914 (again).
This patches a file that is generated by bgen, however the code is now the
same as a current copy of bgen would generate. Without this patch most types
in the Carbon.CF module are unusable.
I haven't managed to coax bgen into generating a complete copy of _CFmodule.c
yet :-(, hence the manual patching.
Modified: python/trunk/Mac/Modules/cf/_CFmodule.c
==============================================================================
--- python/trunk/Mac/Modules/cf/_CFmodule.c (original)
+++ python/trunk/Mac/Modules/cf/_CFmodule.c Sat May 20 08:17:01 2006
@@ -524,7 +524,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFTypeRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFArrayRefObj_CFArrayCreateCopy(CFArrayRefObject *_self, PyObject *_args)
@@ -735,7 +735,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFArrayRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFMutableArrayRefObj_CFArrayRemoveValueAtIndex(CFMutableArrayRefObject *_self, PyObject *_args)
@@ -975,7 +975,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFTypeRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFDictionaryRefObj_CFDictionaryCreateCopy(CFDictionaryRefObject *_self, PyObject *_args)
@@ -1168,7 +1168,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFDictionaryRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFMutableDictionaryRefObj_CFDictionaryRemoveAllValues(CFMutableDictionaryRefObject *_self, PyObject *_args)
@@ -1351,7 +1351,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFTypeRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFDataRefObj_CFDataCreateCopy(CFDataRefObject *_self, PyObject *_args)
@@ -1576,7 +1576,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFDataRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFMutableDataRefObj_CFDataSetLength(CFMutableDataRefObject *_self, PyObject *_args)
@@ -1856,7 +1856,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFTypeRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFStringRefObj_CFStringCreateWithSubstring(CFStringRefObject *_self, PyObject *_args)
@@ -2583,7 +2583,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFStringRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFMutableStringRefObj_CFStringAppend(CFMutableStringRefObject *_self, PyObject *_args)
@@ -2971,7 +2971,7 @@
self->ob_freeit((CFTypeRef)self->ob_itself);
self->ob_itself = NULL;
}
- self->ob_type->tp_base->tp_dealloc((PyObject *)self);
+ CFTypeRef_Type.tp_dealloc((PyObject *)self);
}
static PyObject *CFURLRefObj_CFURLCreateData(CFURLRefObject *_self, PyObject *_args)
More information about the Python-checkins
mailing list