ObjFW  Check-in [8f918a505b]

Overview
Comment:OFBlock.h: Add missing nullability
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8f918a505bcf6f2c00360ec07c0a6e0766cd3bd653d7425594e8ebfff477d948
User & Date: js on 2021-05-13 15:55:44
Other Links: manifest | tags
Context
2021-05-13
19:56
Add +[OFSystemInfo temporaryDirectoryPath] check-in: 7227005db8 user: js tags: trunk
15:55
OFBlock.h: Add missing nullability check-in: 8f918a505b user: js tags: trunk
15:44
OFDNSResourceRecord.h: Document C functions check-in: da6a89fa23 user: js tags: trunk
Changes

Modified src/OFBlock.h from [b2fc8f8283] to [d0a30cd463].

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
OF_SUBCLASSING_RESTRICTED
@interface OFMallocBlock: OFBlock
@end

#ifdef __cplusplus
extern "C" {
#endif
extern void *_Block_copy(const void *);
extern void _Block_release(const void *);

# if defined(OF_WINDOWS) && \
    (defined(OF_NO_SHARED) || defined(OF_COMPILING_OBJFW))
/*
 * Clang has implicit declarations for these, but they are dllimport. When
 * compiling ObjFW itself or using it as a static library, these need to be
 * dllexport. Interestingly, this still works when using it as a shared library.







|
|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
OF_SUBCLASSING_RESTRICTED
@interface OFMallocBlock: OFBlock
@end

#ifdef __cplusplus
extern "C" {
#endif
extern void *_Nullable _Block_copy(const void *_Nullable);
extern void _Block_release(const void *_Nullable);

# if defined(OF_WINDOWS) && \
    (defined(OF_NO_SHARED) || defined(OF_COMPILING_OBJFW))
/*
 * Clang has implicit declarations for these, but they are dllimport. When
 * compiling ObjFW itself or using it as a static library, these need to be
 * dllexport. Interestingly, this still works when using it as a shared library.