mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
* 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:
parent
516667c805
commit
8d5b623c24
6 changed files with 27 additions and 16 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
BOOL _done;
|
||||
}
|
||||
|
||||
- (id) initWithResponsePointer: (NSURLResponse **)response
|
||||
andErrorPointer: (NSError **)error;
|
||||
- (NSData*) _data;
|
||||
- (BOOL) _done;
|
||||
- (void) _setConnection: (NSURLConnection *)c;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#import <Foundation/NSError.h>
|
||||
#import <Foundation/NSHost.h>
|
||||
#import <Foundation/NSRunLoop.h>
|
||||
#import <Foundation/NSValue.h>
|
||||
|
||||
#import "GNUstepBase/GSMime.h"
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue