New strerror-like function

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10043 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2001-05-31 22:39:16 +00:00
parent bb5032befa
commit b786b93998
24 changed files with 215 additions and 151 deletions

View file

@ -898,20 +898,10 @@ static inline BOOL class_is_kind_of (Class self, Class aClassObject)
- (const char *) selectorTypeForProxy: (SEL)selector
{
#if NeXT_RUNTIME
{
elt e;
const char *t;
e = coll_hash_value_for_key(_method_types, selector);
t = e.char_ptr_u;
if (!t)
{
/* This isn't what we want, unless the remote machine has
the same architecture as us. */
t = [connection _typeForSelector:selector remoteTarget:target];
coll_hash_add(&_method_types, (void*)selector, t);
}
return t;
}
/* This isn't what we want, unless the remote machine has
the same architecture as us. */
t = [_connection typeForSelector:selector remoteTarget:target];
return t;
#else /* NeXT_runtime */
return sel_get_type (selector);
#endif