[PyObjC-svn] r2401 - trunk/pyobjc/pyobjc-core/Modules/objc
[email protected] Wed, 03 Feb 2010 15:40:57 -0600
| Newsgroups | gmane.comp.python.pyobjc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ronaldoussoren
Date: Wed Feb 3 15:40:57 2010
New Revision: 2401
Log:
Add an alternative signature for CFRange to the code that
extract a length from a value, this will enable cleanup
of bridgesupport files.
Modified:
trunk/pyobjc/pyobjc-core/Modules/objc/libffi_support.m
Modified: trunk/pyobjc/pyobjc-core/Modules/objc/libffi_support.m
==============================================================================
--- trunk/pyobjc/pyobjc-core/Modules/objc/libffi_support.m (original)
+++ trunk/pyobjc/pyobjc-core/Modules/objc/libffi_support.m Wed Feb 3 15:40:57 2010
@@ -498,6 +498,9 @@
return ((CFRange*)pvalue)->length;
}
#endif
+ if (strncmp(type, "{_CFRange=ll}", sizeof("{_CFRange=ll}") - 1) == 0) {
+ return ((CFRange*)pvalue)->length;
+ }
if (strncmp(type, @encode(CFArrayRef), sizeof(@encode(CFArrayRef))-1) == 0 ||
strncmp(type, @encode(CFMutableArrayRef), sizeof(@encode(CFMutableArrayRef))-1) == 0) {
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com