ObjFW  Check-in [2fb22c605b]

Overview
Comment:Use _Nullable instead of __nullable

Same for _Nonnull / __nonnull.

Apple implemented it as __nullable / __nonnull in their version of Clang
and sent that for upstreaming. My inital comments about this being a
potential problem and to better use _Nullable / _Nonnull had been
rejected as being too late, so I assumed it stayed that way. But
apparently, it has been changed to _Nullable / _Nonnull before the 3.7.0
release.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2fb22c605be51d3b1cea1ef371ac1d0d4f6aa96e118502df3ab77d750c9a92cc
User & Date: js on 2015-10-01 20:34:22
Other Links: manifest | tags
Context
2015-10-01
20:45
Minor cosmetic changes check-in: cd62cbdac5 user: js tags: trunk
20:34
Use _Nullable instead of __nullable check-in: 2fb22c605b user: js tags: trunk
2015-09-17
21:19
Fix compilation for PSP check-in: 719ec38eb0 user: js tags: trunk
Changes

Modified src/macros.h from [1619f8ecc0] to [a5359bc24a].

173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#else
# define OF_GENERIC(...)
#endif

#if __has_feature(nullability)
# define OF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
# define OF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
# define OF_NONNULL __nonnull
# define OF_NULLABLE __nullable
# define OF_NULLABLE_PROPERTY(...) (__VA_ARGS__, nullable)
#else
# define OF_ASSUME_NONNULL_BEGIN
# define OF_ASSUME_NONNULL_END
# define OF_NONNULL
# define OF_NULLABLE
# define OF_NULLABLE_PROPERTY







|
|







173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
#else
# define OF_GENERIC(...)
#endif

#if __has_feature(nullability)
# define OF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
# define OF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
# define OF_NONNULL _Nonnull
# define OF_NULLABLE _Nullable
# define OF_NULLABLE_PROPERTY(...) (__VA_ARGS__, nullable)
#else
# define OF_ASSUME_NONNULL_BEGIN
# define OF_ASSUME_NONNULL_END
# define OF_NONNULL
# define OF_NULLABLE
# define OF_NULLABLE_PROPERTY