Skip to content

Commit

Permalink
Add more type exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dboris committed Sep 20, 2024
1 parent a4df8e8 commit e70fd55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions generate/dune
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
(executable
(name main)
(public_name generate-ml)
; (flags :standard -ccopt "-framework UIKit")
(libraries camlkit-base.runtime lib))
6 changes: 4 additions & 2 deletions lib/util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ let apply_type_exceptions ?(allow_underscore = true) = function
| "OpaqueEventRef" | "OpaqueMenuRef" | "TISInputSource" | "WorkspaceKVOData_t"
| "OpaqueHIPresentationInstanceRef" | "OpaqueATSUStyle" | "AXUIElement"
| "SLMPopUpMenuContext_t" | "RXRecognizer" | "GSEvent" | "GSKeyboard"
| "IOHIDEvent" | "UIWebTouchEvent" ->
| "IOHIDEvent" | "UIWebTouchEvent"
| "sqlite3" | "sqlite3_stmt" | "sqlite3_value" ->
"void"
| "va_list_tag" ->
"(ptr void)"
Expand All @@ -55,7 +56,8 @@ let apply_type_exceptions ?(allow_underscore = true) = function
| "UITableConstantsBackgroundProperties" | "UIPeripheralAnimationGeometry"
| "ITColor" | "mach_right_send" | "PUSimpleIndexPath" | "PXSimpleIndexPath"
| "PHDisplayVelocity" | "PXAssetMediaTypeCount" | "PXAssetBadgeInfo"
| "PUGridCoordinates" | "PUDisplayVelocity" | "CTGlyphStorage" as ty ->
| "PUGridCoordinates" | "PUDisplayVelocity" | "CTGlyphStorage"
| "MIORange" | "IMFileSize" | "AKQuadrilateral" as ty ->
raise (Unsupported_type ty)
| ty ->
if not allow_underscore && String.contains ty '_' then
Expand Down

0 comments on commit e70fd55

Please sign in to comment.