Commits

Ronald Oussoren committed c85b9ff

Fix a number of 64-bit issues.

Still todo: ensure that NSPoint and CGPoint refer to the same
type throughout pyobjc (and likewise for NSSize, NSRect, ...)

  • Participants
  • Parent commits c4594b7
  • Branches pyobjc-ancient

Comments (0)

Files changed (4)

File pyobjc-framework-CoreText/Lib/CoreText/PyObjC.bridgesupport

     <retval already_cfretained='true' type='^{__CTFont=}' />
     <arg type='^{__CTFont=}' />
     <arg type='^{__CFString=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
   </function>
   <function name='CTFontCreatePathForGlyph'>
     <retval type='^{CGPath=}' />
     <arg type='^{__CTFont=}' />
     <arg type='I' />
     <arg type='^S' type_modifier='n' c_array_length_in_arg='4' />
-    <arg type='^{CGRect={CGPoint=ff}{CGSize=ff}}' type64='^{CGRect={CGPoint=ff}{CGSize=ff}}' type_modifier='o' c_array_length_in_arg='4' />
+    <arg type='^{CGRect={CGPoint=ff}{CGSize=ff}}' type64='^{CGRect={CGPoint=dd}{CGSize=dd}}' type_modifier='o' c_array_length_in_arg='4' />
     <arg type='l' type64='l' />
   </function>
   <function name='CTFontGetCapHeight'>
   </function>
   <function name='CTFrameGetLineOrigins'>
     <arg type='^{__CTFrame=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
-    <arg c_array_length_in_arg='1' type='^{CGPoint=ff}' type64='^{CGPoint=ff}' type_modifier='o' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
+    <arg c_array_length_in_arg='1' type='^{CGPoint=ff}' type64='^{CGPoint=dd}' type_modifier='o' />
   </function>
   <function name='CTFrameGetLines'>
     <retval type='^{__CFArray=}' />
     <arg type='^{__CTFrame=}' />
   </function>
   <function name='CTFrameGetStringRange'>
-    <retval type='{_CFRange=ii}' type64='{_CFRange=qq}' />
+    <retval type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg type='^{__CTFrame=}' />
   </function>
   <function name='CTFrameGetTypeID'>
     <retval type='L' type64='Q' />
   </function>
   <function name='CTFrameGetVisibleStringRange'>
-    <retval type='{_CFRange=ii}' type64='{_CFRange=qq}' />
+    <retval type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg type='^{__CTFrame=}' />
   </function>
   <function name='CTFramesetterCreateFrame'>
     <retval already_cfretained='true' type='^{__CTFrame=}' />
     <arg type='^{__CTFramesetter=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg type='^{CGPath=}' type64='^{CGPath=}' />
     <arg type='^{__CFDictionary=}' />
   </function>
   <function name='CTLineGetStringIndexForPosition'>
     <retval type='l' type64='q' />
     <arg type='^{__CTLine=}' />
-    <arg type='{CGPoint=ff}' type64='{CGPoint=ff}' />
+    <arg type='{CGPoint=ff}' type64='{CGPoint=dd}' />
   </function>
   <function name='CTLineGetStringRange'>
-    <retval type='{_CFRange=ii}' type64='{_CFRange=qq}' />
+    <retval type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg type='^{__CTLine=}' />
   </function>
   <function name='CTLineGetTrailingWhitespaceWidth'>
   <function name='CTRunDraw'>
     <arg type='^{__CTRun=}' />
     <arg type='^{CGContext=}' type64='^{CGContext=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
   </function>
   <function name='CTRunGetAttributes'>
     <retval type='^{__CFDictionary=}' />
   </function>
   <function name='CTRunGetGlyphs'>
     <arg type='^{__CTRun=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg c_array_length_in_arg='1' type='^S' type_modifier='o' />
   </function>
   <function name='CTRunGetGlyphsPtr'>
     <retval type='{CGRect={CGPoint=ff}{CGSize=ff}}' type64='{CGRect={CGPoint=dd}{CGSize=dd}}' />
     <arg type='^{__CTRun=}' />
     <arg type='^{CGContext=}' type64='^{CGContext=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
   </function>
   <function name='CTRunGetPositions'>
     <arg type='^{__CTRun=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg type='^{CGPoint=ff}' type64='^{CGPoint=dd}' type_modifier='o' c_array_length_in_arg='1'  />
   </function>
   <function name='CTRunGetPositionsPtr'>
   </function>
   <function name='CTRunGetStringIndices'>
     <arg type='^{__CTRun=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg c_array_length_in_arg='1' type='^i' type64='^i' type_modifier='o' />
   </function>
   <function name='CTRunGetStringIndicesPtr'>
     <arg type='^{__CTRun=}' />
   </function>
   <function name='CTRunGetStringRange'>
-    <retval type='{_CFRange=ii}' type64='{_CFRange=qq}' />
+    <retval type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg type='^{__CTRun=}' />
   </function>
   <function name='CTRunGetTextMatrix'>
   <function name='CTRunGetTypographicBounds'>
     <retval type='d' />
     <arg type='^{__CTRun=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
     <arg type='^f' type64='^f' type_modifier='o' />
     <arg type='^f' type64='^f' type_modifier='o' />
     <arg type='^f' type64='^f' type_modifier='o' />
   <function name='CTTypesetterCreateLine'>
     <retval already_cfretained='true' type='^{__CTLine=}' />
     <arg type='^{__CTTypesetter=}' />
-    <arg type='{_CFRange=ii}' type64='{_CFRange=ii}' />
+    <arg type='{_CFRange=ii}' type64='{_CFRange=ll}' />
   </function>
   <function name='CTTypesetterCreateWithAttributedString'>
     <retval already_cfretained='true' type='^{__CTTypesetter=}' />

File pyobjc-framework-CoreText/PyObjCTest/test_ctframe.py

         v = CTFrameGetVisibleStringRange(frame)
         self.assertIsInstance(v, CFRange)
 
-        self.failIfResultIsCFRetained(CTFrameGetPath)
+        self.assertResultIsNotCFRetained(CTFrameGetPath)
         v = CTFrameGetPath(frame)
         self.assertIsInstance(v, CGPathRef)
 

File pyobjc-framework-CoreText/PyObjCTest/test_ctglyphinfo.py

         v = CTGlyphInfoGetCharacterIdentifier(info)
         self.assertIsInstance(v, (int, long))
 
-        self.failIfResultIsCFRetained(CTGlyphInfoGetCharacterCollection)
+        self.assertResultIsNotCFRetained(CTGlyphInfoGetCharacterCollection)
         v = CTGlyphInfoGetCharacterCollection(info)
         self.assertIsInstance(v, (int, long))
 

File pyobjc-framework-CoreText/distribute_setup.py

             args = [quote(arg) for arg in args]
         return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
 
-DEFAULT_VERSION = "0.6.8"
+DEFAULT_VERSION = "0.6.4"
 DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
 SETUPTOOLS_PKG_INFO = """\
 Metadata-Version: 1.0