mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Source/GSHTTPURLHandle.m (writeKeyCallBacks): Use retained
callbacks for keys. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25379 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
32e101f99f
commit
1e49b51d9e
2 changed files with 12 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-08-04 David Ayers <ayers@fsfe.org>
|
||||
|
||||
* Source/GSHTTPURLHandle.m (writeKeyCallBacks): Use retained
|
||||
callbacks for keys.
|
||||
|
||||
2007-08-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSProcessInfo.m: Private method to check existence of
|
||||
|
|
|
@ -68,13 +68,13 @@
|
|||
* captialisation of headers (some http software is faulty like that).
|
||||
*/
|
||||
static unsigned int
|
||||
_non_retained_id_hash(void *table, NSString* o)
|
||||
_id_hash(void *table, NSString* o)
|
||||
{
|
||||
return [[o uppercaseString] hash];
|
||||
}
|
||||
|
||||
static BOOL
|
||||
_non_retained_id_is_equal(void *table, NSString *o, NSString *p)
|
||||
_id_is_equal(void *table, NSString *o, NSString *p)
|
||||
{
|
||||
return ([o caseInsensitiveCompare: p] == NSOrderedSame) ? YES : NO;
|
||||
}
|
||||
|
@ -87,11 +87,11 @@ typedef NSString *(*NSMT_describe_func_t)(NSMapTable *, const void *);
|
|||
|
||||
static const NSMapTableKeyCallBacks writeKeyCallBacks =
|
||||
{
|
||||
(NSMT_hash_func_t) _non_retained_id_hash,
|
||||
(NSMT_is_equal_func_t) _non_retained_id_is_equal,
|
||||
(NSMT_retain_func_t) _NS_non_retained_id_retain,
|
||||
(NSMT_release_func_t) _NS_non_retained_id_release,
|
||||
(NSMT_describe_func_t) _NS_non_retained_id_describe,
|
||||
(NSMT_hash_func_t) _id_hash,
|
||||
(NSMT_is_equal_func_t) _id_is_equal,
|
||||
(NSMT_retain_func_t) _NS_id_retain,
|
||||
(NSMT_release_func_t) _NS_id_release,
|
||||
(NSMT_describe_func_t) _NS_id_describe,
|
||||
NSNotAPointerMapKey
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue