Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 19b49bc

Browse files
committed
removed macro argument name collision in MAKEDATA in different place, 105 total
1 parent 5199580 commit 19b49bc

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

MPWMAXParser_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ typedef struct _NSXMLElementInfo {
4444
#if DEOPTIMIZE_ALLOCATION
4545
#define MAKEDATA( dataStart, dataLength ) [NSData dataWithBytes:dataStart length:dataLength]
4646
#else
47-
#define MAKEDATA( start, length ) initDataBytesLength( getData( dataCache, @selector(getObject)),@selector(reInitWithData:bytes:length:), data, start , length )
47+
#define MAKEDATA( start, lengthBytes ) initDataBytesLength( getData( dataCache, @selector(getObject)),@selector(reInitWithData:bytes:length:), data, start , lengthBytes )
4848
#endif
4949

5050

MPWXmlUnarchiver.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ -(void)parser:aParser foundCharacters:(MPWSubData*)chars
555555
if ( dataLen>0 ) {
556556
// NSLog(@"characters: expecting dataLen = %d, got %d '%@'",dataLen,[chars length],chars);
557557
if ( [chars isEqual:@">]]>"] ) {
558-
chars=[NSData dataWithBytes:"]]>" length:3];
558+
chars=(MPWSubData*)[NSData dataWithBytes:"]]>" length:3];
559559
}
560560
dataLen-=[chars length];
561561
if ( currentValue ) {

MPWXmlWrapperArchiver.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ -(void)dealloc
7878

7979
+testSelectors
8080
{
81-
return [NSArray arrayWithObjects:nil];
81+
return @[
82+
];
8283
}
8384

8485

XmlScannerPseudoMacro.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ static int scanXml(
162162
//NSLog(@"start scan with client data %x",clientData);
163163
while ( currentPtr < endPtr ) {
164164
const xmlchar *currentString = currentPtr;
165-
int spaceOffset=0;
165+
long spaceOffset=0;
166166
ProcessFunc currentCallback;
167167

168168
//--- scan up to the beginning of a tag (the initial '<' )

0 commit comments

Comments
 (0)