]> git.saurik.com Git - cycript.git/blobdiff - Bridge.def
Support casting any pointer to a function type.
[cycript.git] / Bridge.def
index 5765ed6ffb4f90f6b3cf66ddea503903d06f5caf..1d3c4f08f8306b3604e6f7a6cc06adbfaefd877d 100644 (file)
@@ -44,9 +44,9 @@ T UInt32 {uint32_t}
 T SInt64 {int64_t}
 T UInt64 {uint64_t}
 
-S CGPoint "x"f"y"f
+S CGPoint "x"{CGFloat}"y"{CGFloat}
 S CGRect "origin"{CGPoint}"size"{CGSize}
-S CGSize "width"f"height"f
+S CGSize "width"{CGFloat}"height"{CGFloat}
 
 l c
 
@@ -344,7 +344,7 @@ V UIKeyboardAnimationDurationUserInfoKey @
 
 F UIApplicationMain ii^^c@@
 
-F UIImageJPEGRepresentation @@
+F UIImageJPEGRepresentation @@f
 F UIImagePNGRepresentation @@
 F UIImageWriteToSavedPhotosAlbum v@@:^v
 
@@ -1241,7 +1241,7 @@ F CFShowStr v@
 
 f CoreGraphics
 
-T CGFloat f
+T CGFloat F
 
 # CGAffineTransform
 
@@ -1616,7 +1616,7 @@ C RTLD_NEXT -1
 C RTLD_DEFAULT -2
 C RTLD_SELF -3
 
-S dl_info "dli_fname"*"dli_fbase"v^"dli_sname"*"dli_saddr"^v
+S dl_info "dli_fname"*"dli_fbase"^v"dli_sname"*"dli_saddr"^v
 T Dl_info {dl_info}
 
 F dladdr i^rv^{dl_info}