mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
3f3858d186
commit
e53422f8f9
6 changed files with 27 additions and 16 deletions
|
@ -11,9 +11,15 @@
|
||||||
instances.
|
instances.
|
||||||
|
|
||||||
* Source/NSCalendarDate.m: Add explicit include of NSDictionary.h.
|
* 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
|
* Source/NSKeyValueMutableArray.m: Various non-functional variable
|
||||||
and parameter renames to avoid bogus compiler warnings.
|
and parameter renames to avoid bogus compiler warnings.
|
||||||
|
* Source/NSKeyValueMutableSet.m: Ditto.
|
||||||
|
|
||||||
2007-11-30 Richard Frith-Macdonald <rfm@gnu.org>
|
2007-11-30 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -91,25 +91,25 @@
|
||||||
NSKeyValueMutableSet *proxy;
|
NSKeyValueMutableSet *proxy;
|
||||||
unsigned size = [aKey maximumLengthOfBytesUsingEncoding:
|
unsigned size = [aKey maximumLengthOfBytesUsingEncoding:
|
||||||
NSUTF8StringEncoding];
|
NSUTF8StringEncoding];
|
||||||
char key[size + 1];
|
char keybuf[size + 1];
|
||||||
|
|
||||||
[aKey getCString: key
|
[aKey getCString: keybuf
|
||||||
maxLength: size + 1
|
maxLength: size + 1
|
||||||
encoding: NSUTF8StringEncoding];
|
encoding: NSUTF8StringEncoding];
|
||||||
if (islower(*key))
|
if (islower(*keybuf))
|
||||||
{
|
{
|
||||||
*key = toupper(*key);
|
*keybuf = toupper(*keybuf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
proxy = [NSKeyValueFastMutableSet setForKey: aKey
|
proxy = [NSKeyValueFastMutableSet setForKey: aKey
|
||||||
ofObject: anObject
|
ofObject: anObject
|
||||||
withCapitalizedKey: key];
|
withCapitalizedKey: keybuf];
|
||||||
if (proxy == nil)
|
if (proxy == nil)
|
||||||
{
|
{
|
||||||
proxy = [NSKeyValueSlowMutableSet setForKey: aKey
|
proxy = [NSKeyValueSlowMutableSet setForKey: aKey
|
||||||
ofObject: anObject
|
ofObject: anObject
|
||||||
withCapitalizedKey: key];
|
withCapitalizedKey: keybuf];
|
||||||
|
|
||||||
if (proxy == nil)
|
if (proxy == nil)
|
||||||
{
|
{
|
||||||
|
@ -172,7 +172,7 @@
|
||||||
@implementation NSKeyValueFastMutableSet
|
@implementation NSKeyValueFastMutableSet
|
||||||
|
|
||||||
+ (id) setForKey: (NSString *)aKey ofObject: (id)anObject
|
+ (id) setForKey: (NSString *)aKey ofObject: (id)anObject
|
||||||
withCapitalizedKey: (char *)capitalized
|
withCapitalizedKey: (const char *)capitalized
|
||||||
{
|
{
|
||||||
return [[[self alloc] initWithKey: aKey
|
return [[[self alloc] initWithKey: aKey
|
||||||
ofObject: anObject
|
ofObject: anObject
|
||||||
|
@ -551,9 +551,9 @@
|
||||||
|
|
||||||
@implementation NSKeyValueIvarMutableSet
|
@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
|
- (id) initWithKey: (NSString *)aKey ofObject: (id)anObject
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
#include "Foundation/NSArray.h"
|
#include "Foundation/NSArray.h"
|
||||||
#include "Foundation/NSString.h"
|
#include "Foundation/NSString.h"
|
||||||
#include "Foundation/NSException.h"
|
#include "Foundation/NSException.h"
|
||||||
|
#include "Foundation/NSEnumerator.h"
|
||||||
#include "Foundation/NSProxy.h"
|
#include "Foundation/NSProxy.h"
|
||||||
#include "Foundation/NSLock.h"
|
#include "Foundation/NSLock.h"
|
||||||
#include "Foundation/NSSet.h"
|
#include "Foundation/NSSet.h"
|
||||||
|
|
|
@ -35,6 +35,8 @@
|
||||||
BOOL _done;
|
BOOL _done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (id) initWithResponsePointer: (NSURLResponse **)response
|
||||||
|
andErrorPointer: (NSError **)error;
|
||||||
- (NSData*) _data;
|
- (NSData*) _data;
|
||||||
- (BOOL) _done;
|
- (BOOL) _done;
|
||||||
- (void) _setConnection: (NSURLConnection *)c;
|
- (void) _setConnection: (NSURLConnection *)c;
|
||||||
|
|
|
@ -25,6 +25,7 @@
|
||||||
#import <Foundation/NSError.h>
|
#import <Foundation/NSError.h>
|
||||||
#import <Foundation/NSHost.h>
|
#import <Foundation/NSHost.h>
|
||||||
#import <Foundation/NSRunLoop.h>
|
#import <Foundation/NSRunLoop.h>
|
||||||
|
#import <Foundation/NSValue.h>
|
||||||
|
|
||||||
#import "GNUstepBase/GSMime.h"
|
#import "GNUstepBase/GSMime.h"
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#import "GSPrivate.h"
|
#import "GSPrivate.h"
|
||||||
|
|
||||||
#import "Foundation/NSCoder.h"
|
#import "Foundation/NSCoder.h"
|
||||||
|
#import "Foundation/NSDictionary.h"
|
||||||
#import "Foundation/NSScanner.h"
|
#import "Foundation/NSScanner.h"
|
||||||
#import "NSCallBacks.h"
|
#import "NSCallBacks.h"
|
||||||
#import "GNUstepBase/GSMime.h"
|
#import "GNUstepBase/GSMime.h"
|
||||||
|
@ -33,13 +34,13 @@
|
||||||
|
|
||||||
// Internal data storage
|
// Internal data storage
|
||||||
typedef struct {
|
typedef struct {
|
||||||
long long expectedContentLength;
|
long long expectedContentLength;
|
||||||
NSURL *URL;
|
NSURL *URL;
|
||||||
NSString *MIMEType;
|
NSString *MIMEType;
|
||||||
NSString *textEncodingName;
|
NSString *textEncodingName;
|
||||||
NSString *statusText;
|
NSString *statusText;
|
||||||
_GSMutableInsensitiveDictionary *headers;
|
NSMutableDictionary *headers; /* _GSMutableInsensitiveDictionary */
|
||||||
int statusCode;
|
int statusCode;
|
||||||
} Internal;
|
} Internal;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue