ObjFW  Check-in [ac1ae59c91]

Overview
Comment:Replace @compatibility_alias with #define for NS*

@compatibility_alias breaks when enabling the new Clang module support.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ac1ae59c9171339224645f2a0a95053b5ec9bd9772a30f75b562b0605a127137
User & Date: js on 2014-05-14 21:09:54
Other Links: manifest | tags
Context
2014-05-15
01:49
OFFile: Add support for the C11 "x" modes check-in: d7728534a4 user: js tags: trunk
2014-05-14
21:09
Replace @compatibility_alias with #define for NS* check-in: ac1ae59c91 user: js tags: trunk
20:45
Add C11 noreturn check-in: bac91ccede user: js tags: trunk
Changes

Modified src/OFArray.h from [60fd5eff45] to [4a0b0e23ef].

440
441
442
443
444
445
446
447
448
   mutationsPtr: (unsigned long*)mutationsPtr;
@end

#import "OFMutableArray.h"

#ifndef NSINTEGER_DEFINED
/* Required for array literals to work */
@compatibility_alias NSArray OFArray;
#endif







|

440
441
442
443
444
445
446
447
448
   mutationsPtr: (unsigned long*)mutationsPtr;
@end

#import "OFMutableArray.h"

#ifndef NSINTEGER_DEFINED
/* Required for array literals to work */
# define NSArray OFArray
#endif

Modified src/OFDictionary.h from [572c030e5b] to [22fec78e10].

244
245
246
247
248
249
250
251
252
#endif
@end

#import "OFMutableDictionary.h"

#ifndef NSINTEGER_DEFINED
/* Required for dictionary literals to work */
@compatibility_alias NSDictionary OFDictionary;
#endif







|

244
245
246
247
248
249
250
251
252
#endif
@end

#import "OFMutableDictionary.h"

#ifndef NSINTEGER_DEFINED
/* Required for dictionary literals to work */
# define NSDictionary OFDictionary
#endif

Modified src/OFNumber.h from [ba305281bd] to [05b1f19d45].

910
911
912
913
914
915
916
917
918
 * @return The remainder of a division by the specified number
 */
- (OFNumber*)remainderOfDivisionWithNumber: (OFNumber*)num;
@end

#ifndef NSINTEGER_DEFINED
/* Required for number literals to work */
@compatibility_alias NSNumber OFNumber;
#endif







|

910
911
912
913
914
915
916
917
918
 * @return The remainder of a division by the specified number
 */
- (OFNumber*)remainderOfDivisionWithNumber: (OFNumber*)num;
@end

#ifndef NSINTEGER_DEFINED
/* Required for number literals to work */
# define NSNumber OFNumber
#endif

Modified src/OFString.h from [ce5de11866] to [cf35fc260b].

1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
#import "OFString+Serialization.h"
#import "OFString+URLEncoding.h"
#import "OFString+XMLEscaping.h"
#import "OFString+XMLUnescaping.h"

#ifndef NSINTEGER_DEFINED
/* Required for string boxing literals to work */
@compatibility_alias NSString OFString;
#endif

#ifdef __cplusplus
extern "C" {
#endif
extern size_t of_string_utf8_encode(of_unichar_t, char*);
extern size_t of_string_utf8_decode(const char*, size_t, of_unichar_t*);
extern size_t of_string_utf16_length(const of_char16_t*);
extern size_t of_string_utf32_length(const of_char32_t*);
#ifdef __cplusplus
}
#endif







|












1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
#import "OFString+Serialization.h"
#import "OFString+URLEncoding.h"
#import "OFString+XMLEscaping.h"
#import "OFString+XMLUnescaping.h"

#ifndef NSINTEGER_DEFINED
/* Required for string boxing literals to work */
# define NSString OFString
#endif

#ifdef __cplusplus
extern "C" {
#endif
extern size_t of_string_utf8_encode(of_unichar_t, char*);
extern size_t of_string_utf8_decode(const char*, size_t, of_unichar_t*);
extern size_t of_string_utf16_length(const of_char16_t*);
extern size_t of_string_utf32_length(const of_char32_t*);
#ifdef __cplusplus
}
#endif