Permalink
Browse files

[ISSUE-439] Code workarounds to resolve API changes in DDGetoptLongPa…

…rser and new clang pedantry.
  • Loading branch information...
1 parent 8291680 commit 76aca84144a745b66da6d5e5011197591832aa48 Stephen Tramer committed with sptramer Jul 9, 2014
@@ -211,6 +211,6 @@ typedef struct
*/
- (void)optionIsMissingArgument:(NSString *)option;
-- (NSString *)optionToKey:(NSString *)option;
++ (NSString *)optionToKey:(NSString *)option;
@end
@@ -259,7 +259,12 @@ - (NSArray *)parseOptionsWithArguments:(NSArray *)arguments
}
}
-- (NSString *)optionToKey:(NSString *)option;
+- (NSString *)optionToKey:(NSString *)option
+{
+ return [DDGetoptLongParser optionToKey:option];
+}
+
++ (NSString *)optionToKey:(NSString *)option;
{
NSScanner * scanner = [NSScanner scannerWithString: option];
[scanner setCharactersToBeSkipped: [NSCharacterSet characterSetWithCharactersInString: @"-"]];
@@ -24,6 +24,7 @@ @interface GBCrossRefData : NSObject
@end
@implementation GBCrossRefData
+@synthesize description; // Explicitly required to override -[NSObject description](readonly)
+ (instancetype) crossRefData {
GBCrossRefData *result = [[self alloc] init];

0 comments on commit 76aca84

Please sign in to comment.