* Source/NSURLResponse.m: Add explicit include of NSDictionary.h.

Use available dictionary declartion.
	* Source/NSURLProtocol.m: Add explicit import of NSData.h.
	* Source/NSSerializer.m: Add explicit import of NSEnumerator.h.
	* Source/NSURLConnection.m
	([-initWithResponsePointer:andErrorPointer:]):  Add declaration.

	* Source/NSKeyValueMutableSet.m: Various non-functional variable
	and parameter renames to avoid bogus compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25661 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Ayers 2007-12-02 21:13:09 +00:00
parent 516667c805
commit 8d5b623c24
6 changed files with 27 additions and 16 deletions

View file

@ -11,9 +11,15 @@
instances.
* Source/NSCalendarDate.m: Add explicit include of NSDictionary.h.
* Source/NSURLResponse.m: Ditto. Use available dictionary declartion.
* Source/NSURLProtocol.m: Add explicit import of NSData.h.
* Source/NSSerializer.m: Add explicit import of NSEnumerator.h.
* Source/NSURLConnection.m
([-initWithResponsePointer:andErrorPointer:]): Add declaration.
* Source/NSKeyValueMutableArray.m: Various non-functional variable
and parameter renames to avoid bogus compiler warnings.
* Source/NSKeyValueMutableSet.m: Ditto.
2007-11-30 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -91,25 +91,25 @@
NSKeyValueMutableSet *proxy;
unsigned size = [aKey maximumLengthOfBytesUsingEncoding:
NSUTF8StringEncoding];
char key[size + 1];
char keybuf[size + 1];
[aKey getCString: key
[aKey getCString: keybuf
maxLength: size + 1
encoding: NSUTF8StringEncoding];
if (islower(*key))
if (islower(*keybuf))
{
*key = toupper(*key);
*keybuf = toupper(*keybuf);
}
proxy = [NSKeyValueFastMutableSet setForKey: aKey
ofObject: anObject
withCapitalizedKey: key];
withCapitalizedKey: keybuf];
if (proxy == nil)
{
proxy = [NSKeyValueSlowMutableSet setForKey: aKey
ofObject: anObject
withCapitalizedKey: key];
withCapitalizedKey: keybuf];
if (proxy == nil)
{
@ -172,7 +172,7 @@
@implementation NSKeyValueFastMutableSet
+ (id) setForKey: (NSString *)aKey ofObject: (id)anObject
withCapitalizedKey: (char *)capitalized
withCapitalizedKey: (const char *)capitalized
{
return [[[self alloc] initWithKey: aKey
ofObject: anObject
@ -551,9 +551,9 @@
@implementation NSKeyValueIvarMutableSet
+ (id) setForKey: (NSString *)key ofObject: (id)anObject
+ (id) setForKey: (NSString *)aKey ofObject: (id)anObject
{
return [[[self alloc] initWithKey: key ofObject: anObject] autorelease];
return [[[self alloc] initWithKey: aKey ofObject: anObject] autorelease];
}
- (id) initWithKey: (NSString *)aKey ofObject: (id)anObject

View file

@ -32,6 +32,7 @@
#include "Foundation/NSArray.h"
#include "Foundation/NSString.h"
#include "Foundation/NSException.h"
#include "Foundation/NSEnumerator.h"
#include "Foundation/NSProxy.h"
#include "Foundation/NSLock.h"
#include "Foundation/NSSet.h"

View file

@ -35,6 +35,8 @@
BOOL _done;
}
- (id) initWithResponsePointer: (NSURLResponse **)response
andErrorPointer: (NSError **)error;
- (NSData*) _data;
- (BOOL) _done;
- (void) _setConnection: (NSURLConnection *)c;

View file

@ -25,6 +25,7 @@
#import <Foundation/NSError.h>
#import <Foundation/NSHost.h>
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSValue.h>
#import "GNUstepBase/GSMime.h"

View file

@ -26,6 +26,7 @@
#import "GSPrivate.h"
#import "Foundation/NSCoder.h"
#import "Foundation/NSDictionary.h"
#import "Foundation/NSScanner.h"
#import "NSCallBacks.h"
#import "GNUstepBase/GSMime.h"
@ -33,13 +34,13 @@
// Internal data storage
typedef struct {
long long expectedContentLength;
NSURL *URL;
NSString *MIMEType;
NSString *textEncodingName;
NSString *statusText;
_GSMutableInsensitiveDictionary *headers;
int statusCode;
long long expectedContentLength;
NSURL *URL;
NSString *MIMEType;
NSString *textEncodingName;
NSString *statusText;
NSMutableDictionary *headers; /* _GSMutableInsensitiveDictionary */
int statusCode;
} Internal;
typedef struct {