Skip to content

Commit 23828ea

Browse files
committed
Initial round of macros gathering
1 parent 1101043 commit 23828ea

File tree

438 files changed

+30085
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+30085
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Correctnes: ok
2+
// /Users/mstanchin/share/git-reps/binaryninja/contributing/origin/iPhoneOS18.6.sdk/usr/include/AppleArchive/AADefs.h
3+
4+
enum macro_api_version {
5+
/*line: 15*/ APPLE_ARCHIVE_API_VERSION = 0x4b0, // 1200
6+
};
7+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Correctnes: bad
2+
// /Users/mstanchin/share/git-reps/binaryninja/contributing/origin/iPhoneOS18.6.sdk/usr/include/AppleArchive/AppleArchive.h
3+
4+
/* ======== UNRESOLVED MACROS SECTION ======== */
5+
// Line: 21
6+
// #define APPLE_ARCHIVE_AVAILABLE __API_AVAILABLE
7+
8+
// Line: 28
9+
// #define APPLE_ARCHIVE_SWIFT_PRIVATE __attribute__((swift_private))
10+
11+
// Line: 35
12+
// #define APPLE_ARCHIVE_INLINE static inline __attribute__((always_inline,overloadable)) APPLE_ARCHIVE_SWIFT_PRIVATE
13+

macrodefs_enums/ios/AppleEXR.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Correctnes: ok
2+
// /Users/mstanchin/share/git-reps/binaryninja/contributing/origin/iPhoneOS18.6.sdk/usr/include/AppleEXR.h
3+
4+
enum macro_apple_exr_h {
5+
/*line: 176*/ AppleEXR_h = 0x1, // 1
6+
};
7+
8+
/* ======== UNRESOLVED MACROS SECTION ======== */
9+
// Line: 204
10+
// #define AXR_RETURNS_RETAINED OS_OBJECT_RETURNS_RETAINED
11+
12+
// Line: 233
13+
// #define AXR_AVAILABILITY_v1 __API_AVAILABLE(macos(11.0),iios(14.0),ttvos(14.0),wwatchos(7.0))
14+
15+
// Line: 234
16+
// #define AXR_ENUM_AVAILABILITY_v1 __API_AVAILABLE(macos(11.0),iios(14.0),ttvos(14.0),wwatchos(7.0))
17+
18+
// Line: 235
19+
// #define AXR_AVAILABILITY_v2 __API_AVAILABLE(macos(12.3), iios(15.3),ttvos(15.3),wwatchos(8.3))
20+
21+
// Line: 236
22+
// #define AXR_ENUM_AVAILABILITY_v2 __API_AVAILABLE(macos(12.3), iios(15.3),ttvos(15.3),wwatchos(8.3))
23+
24+
// Line: 237
25+
// #define AXR_AVAILABILITY_v3 __API_AVAILABLE(macos(13.0), iios(16.1),ttvos(16.1),wwatchos(9.1))
26+
27+
// Line: 238
28+
// #define AXR_ENUM_AVAILABILITY_v3 __API_AVAILABLE(macos(13.0), iios(16.1),ttvos(16.1),wwatchos(9.1))
29+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Correctnes: ok
2+
// /Users/mstanchin/share/git-reps/binaryninja/contributing/origin/iPhoneOS18.6.sdk/usr/include/AppleTextureEncoder.h
3+
4+
enum macro_apple_texture_encoder_h {
5+
/*line: 12*/ _AppleTextureEncoder_h_ = 0x1, // 1
6+
};
7+
8+
/* ======== UNRESOLVED MACROS SECTION ======== */
9+
// Line: 70
10+
// #define AT_AVAILABILITY_v1 __API_AVAILABLE(macos(10.12),iios(10.0),ttvos(10.0),wwatchos(5.0))
11+
12+
// Line: 71
13+
// #define AT_ENUM_AVAILABILITY_v1 __API_AVAILABLE(macos(10.12),iios(10.0),ttvos(10.0),wwatchos(5.0))
14+
15+
// Line: 72
16+
// #define AT_AVAILABILITY_v2 __API_AVAILABLE(macos(10.15),iios(13.0),ttvos(13.0),wwatchos(6.0))
17+
18+
// Line: 73
19+
// #define AT_ENUM_AVAILABILITY_v2 __API_AVAILABLE(macos(10.15),iios(13.0),ttvos(13.0),wwatchos(6.0))
20+
21+
// Line: 74
22+
// #define AT_AVAILABILITY_v3 __API_AVAILABLE(macos(10.15.4),iios(13.2.2),ttvos(13.2.2),wwatchos(6.2))
23+
24+
// Line: 75
25+
// #define AT_ENUM_AVAILABILITY_v3 __API_AVAILABLE(macos(10.15.4),iios(13.2.2),ttvos(13.2.2),wwatchos(6.2))
26+

macrodefs_enums/ios/AssertMacros.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Correctnes: ok
2+
// /Users/mstanchin/share/git-reps/binaryninja/contributing/origin/iPhoneOS18.6.sdk/usr/include/AssertMacros.h
3+
4+
enum macro_assert_macros {
5+
/* In macOS High Sierra and iOS 11, if we haven't set this yet, it now defaults to off. */
6+
/*line: 1318*/ __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES = 0x0, // 0
7+
};
8+
9+
/* ======== UNRESOLVED MACROS SECTION ======== */
10+
// Line: 141
11+
// #define DEBUG_ASSERT_PRODUCTION_CODE !DEBUG
12+
13+
// Line: 245
14+
// #define DEBUG_ASSERT_ERROR_TYPE long
15+

macrodefs_enums/ios/Availability.h

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
// Correctnes: ok
2+
// /Users/mstanchin/share/git-reps/binaryninja/contributing/origin/iPhoneOS18.6.sdk/usr/include/Availability.h
3+
4+
enum macro_api_to_be_deprecated {
5+
/*line: 132*/ __API_TO_BE_DEPRECATED = 0x186a0, // 100000
6+
/*line: 136*/ __API_TO_BE_DEPRECATED_MACOS = 0x186a0, // 100000
7+
/*line: 139*/ __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION = 0x186a0, // 100000
8+
/*line: 143*/ __API_TO_BE_DEPRECATED_IOS = 0x186a0, // 100000
9+
/*line: 146*/ __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION = 0x186a0, // 100000
10+
/*line: 149*/ __API_TO_BE_DEPRECATED_MACCATALYST = 0x186a0, // 100000
11+
/*line: 152*/ __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION = 0x186a0, // 100000
12+
/*line: 156*/ __API_TO_BE_DEPRECATED_WATCHOS = 0x186a0, // 100000
13+
/*line: 159*/ __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION = 0x186a0, // 100000
14+
/*line: 163*/ __API_TO_BE_DEPRECATED_TVOS = 0x186a0, // 100000
15+
/*line: 166*/ __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION = 0x186a0, // 100000
16+
/*line: 172*/ __API_TO_BE_DEPRECATED_DRIVERKIT = 0x186a0, // 100000
17+
/*line: 176*/ __API_TO_BE_DEPRECATED_VISIONOS = 0x186a0, // 100000
18+
/*line: 179*/ __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION = 0x186a0, // 100000
19+
/*line: 187*/ __API_TO_BE_DEPRECATED_KERNELKIT = 0x186a0, // 100000
20+
};
21+
22+
/* ======== UNRESOLVED MACROS SECTION ======== */
23+
// Line: 299
24+
// #define __OSX_UNAVAILABLE __OS_AVAILABILITY(macosx,unavailable)
25+
26+
// Line: 325
27+
// #define __IOS_UNAVAILABLE __OS_AVAILABILITY(ios,unavailable)
28+
29+
// Line: 327
30+
// #define __IOS_PROHIBITED __OS_AVAILABILITY(ios,unavailable)
31+
32+
// Line: 354
33+
// #define __TVOS_UNAVAILABLE __OS_AVAILABILITY(tvos,unavailable)
34+
35+
// Line: 356
36+
// #define __TVOS_PROHIBITED __OS_AVAILABILITY(tvos,unavailable)
37+
38+
// Line: 383
39+
// #define __WATCHOS_UNAVAILABLE __OS_AVAILABILITY(watchos,unavailable)
40+
41+
// Line: 385
42+
// #define __WATCHOS_PROHIBITED __OS_AVAILABILITY(watchos,unavailable)
43+
44+
// Line: 411
45+
// #define __SWIFT_UNAVAILABLE __OS_AVAILABILITY(swift,unavailable)
46+
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Correctnes: ok
2+
// /Users/mstanchin/share/git-reps/binaryninja/contributing/origin/iPhoneOS18.6.sdk/usr/include/AvailabilityInternal.h
3+
4+
// Depends on identifiers
5+
enum macro_iphone_os_version {
6+
/*line: 50*/ __IPHONE_OS_VERSION_MIN_REQUIRED = 0x11170, // __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__
7+
/*line: 51*/ __IPHONE_OS_VERSION_MAX_ALLOWED = 0x2c114, // __IPHONE_18_5
8+
};
9+
10+
/* ======== UNRESOLVED MACROS SECTION ======== */
11+
// Line: 130
12+
// #define __AVAILABILITY_INTERNAL_DEPRECATED __attribute__((deprecated))
13+
14+
// Line: 142
15+
// #define __AVAILABILITY_INTERNAL_UNAVAILABLE __attribute__((unavailable))
16+
17+
// Line: 143
18+
// #define __AVAILABILITY_INTERNAL_WEAK_IMPORT __attribute__((weak_import))
19+
20+
// Line: 151
21+
// #define __API_UNAVAILABLE_PLATFORM_macos macos,unavailable
22+
23+
// Line: 155
24+
// #define __API_UNAVAILABLE_PLATFORM_macosx macos,unavailable
25+
26+
// Line: 159
27+
// #define __API_UNAVAILABLE_PLATFORM_macOSApplicationExtension macOSApplicationExtension,unavailable
28+
29+
// Line: 163
30+
// #define __API_UNAVAILABLE_PLATFORM_ios ios,unavailable
31+
32+
// Line: 167
33+
// #define __API_UNAVAILABLE_PLATFORM_iOSApplicationExtension iOSApplicationExtension,unavailable
34+
35+
// Line: 171
36+
// #define __API_UNAVAILABLE_PLATFORM_macCatalyst macCatalyst,unavailable
37+
38+
// Line: 175
39+
// #define __API_UNAVAILABLE_PLATFORM_macCatalystApplicationExtension macCatalystApplicationExtension,unavailable
40+
41+
// Line: 179
42+
// #define __API_UNAVAILABLE_PLATFORM_watchos watchos,unavailable
43+
44+
// Line: 183
45+
// #define __API_UNAVAILABLE_PLATFORM_watchOSApplicationExtension watchOSApplicationExtension,unavailable
46+
47+
// Line: 187
48+
// #define __API_UNAVAILABLE_PLATFORM_tvos tvos,unavailable
49+
50+
// Line: 191
51+
// #define __API_UNAVAILABLE_PLATFORM_tvOSApplicationExtension tvOSApplicationExtension,unavailable
52+
53+
// Line: 196
54+
// #define __API_UNAVAILABLE_PLATFORM_driverkit driverkit,unavailable
55+
56+
// Line: 200
57+
// #define __API_UNAVAILABLE_PLATFORM_visionos visionos,unavailable
58+
59+
// Line: 204
60+
// #define __API_UNAVAILABLE_PLATFORM_visionOSApplicationExtension visionOSApplicationExtension,unavailable
61+
62+
// Line: 206
63+
// #define __API_UNAVAILABLE_PLATFORM_kernelkit kernelkit,unavailable
64+
65+
// Line: 216
66+
// #define __API_APPLY_TO any(record, enum, enum_constant, function, objc_method, objc_category, objc_protocol, objc_interface, objc_property, type_alias, variable, field)
67+

0 commit comments

Comments
 (0)