mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
8a2aaf2c53
commit
131c0e60d0
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>
|
2007-08-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSProcessInfo.m: Private method to check existence of
|
* Source/NSProcessInfo.m: Private method to check existence of
|
||||||
|
|
|
@ -68,13 +68,13 @@
|
||||||
* captialisation of headers (some http software is faulty like that).
|
* captialisation of headers (some http software is faulty like that).
|
||||||
*/
|
*/
|
||||||
static unsigned int
|
static unsigned int
|
||||||
_non_retained_id_hash(void *table, NSString* o)
|
_id_hash(void *table, NSString* o)
|
||||||
{
|
{
|
||||||
return [[o uppercaseString] hash];
|
return [[o uppercaseString] hash];
|
||||||
}
|
}
|
||||||
|
|
||||||
static BOOL
|
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;
|
return ([o caseInsensitiveCompare: p] == NSOrderedSame) ? YES : NO;
|
||||||
}
|
}
|
||||||
|
@ -87,11 +87,11 @@ typedef NSString *(*NSMT_describe_func_t)(NSMapTable *, const void *);
|
||||||
|
|
||||||
static const NSMapTableKeyCallBacks writeKeyCallBacks =
|
static const NSMapTableKeyCallBacks writeKeyCallBacks =
|
||||||
{
|
{
|
||||||
(NSMT_hash_func_t) _non_retained_id_hash,
|
(NSMT_hash_func_t) _id_hash,
|
||||||
(NSMT_is_equal_func_t) _non_retained_id_is_equal,
|
(NSMT_is_equal_func_t) _id_is_equal,
|
||||||
(NSMT_retain_func_t) _NS_non_retained_id_retain,
|
(NSMT_retain_func_t) _NS_id_retain,
|
||||||
(NSMT_release_func_t) _NS_non_retained_id_release,
|
(NSMT_release_func_t) _NS_id_release,
|
||||||
(NSMT_describe_func_t) _NS_non_retained_id_describe,
|
(NSMT_describe_func_t) _NS_id_describe,
|
||||||
NSNotAPointerMapKey
|
NSNotAPointerMapKey
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue