mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Fix a load of warnings from implicit function declarations. A lot were caused by ctype.h and string.h stuff being used everywhere in GNUstep but not included anywhere - they're now included in common.h (at least string.h should also be in Foundation.h - on OS X it is implicitly included via some chain of things from Foundation.h).
All of the sel_* stuff is now replaced with the newer APIs. As a side-effect, a blob of code that was copied-and-pasted all over GNUstep has now been moved into ObjectiveC2 and just called. Class posing with libobjc2 will now throw an exception, rather than just aborting. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31268 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
db04df357a
commit
4488708e84
11 changed files with 49 additions and 79 deletions
|
@ -147,28 +147,7 @@ GSSelectorFromNameAndTypes(const char *name, const char *types)
|
|||
}
|
||||
else
|
||||
{
|
||||
SEL s;
|
||||
|
||||
if (types == 0)
|
||||
{
|
||||
s = sel_get_any_typed_uid(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
s = sel_get_typed_uid(name, types);
|
||||
}
|
||||
if (s == 0)
|
||||
{
|
||||
if (types == 0)
|
||||
{
|
||||
s = sel_register_name(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
s = sel_register_typed_name(name, types);
|
||||
}
|
||||
}
|
||||
return s;
|
||||
return sel_registerTypedName_np(name, types);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -180,7 +159,7 @@ GSTypesFromSelector(SEL sel)
|
|||
#else
|
||||
if (sel == 0)
|
||||
return 0;
|
||||
return sel_get_type(sel);
|
||||
return sel_getType_np(sel);
|
||||
#endif
|
||||
}
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue