Minor build fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31271 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
ericwa 2010-09-09 17:02:19 +00:00
parent 62f9e3c053
commit 2e8bd670a8
3 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2010-09-09 Eric Wasylishen <ewasylishen@gmail.com>
* Source/ObjectiveC2/runtime.c: fix a typo
* Source/NSObject.m: c90 compatibliity
2010-09-09 Eric Wasylishen <ewasylishen@gmail.com>
* Source/ObjectiveC2/runtime.c:

View file

@ -1375,6 +1375,8 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
{
const char *types = NULL;
Class c;
unsigned int count;
Protocol **protocols;
if (0 == aSelector)
{
@ -1400,12 +1402,12 @@ objc_create_block_classes_as_subclasses_of(Class super) __attribute__((weak));
* used by the Distributed Objects system, which the
* runtime does not maintain in classes.
*/
unsigned int count;
Protocol **protocols = class_copyProtocolList(isa, &count);
protocols = class_copyProtocolList(isa, &count);
if (NULL != protocols)
{
struct objc_method_description mth;
for (int i=0 ; i<count ; i++)
int i;
for (i=0 ; i<count ; i++)
{
mth = GSProtocolGetMethodDescriptionRecursive(protocols[i],
aSelector, YES, YES);

View file

@ -1322,21 +1322,21 @@ SEL sel_registerTypedName_np(const char *selName, const char *types)
if (types == 0)
{
s = sel_get_any_typed_uid(name);
s = sel_get_any_typed_uid(selName);
}
else
{
s = sel_get_typed_uid(name, types);
s = sel_get_typed_uid(selName, types);
}
if (s == 0)
{
if (types == 0)
{
s = sel_register_name(name);
s = sel_register_name(selName);
}
else
{
s = sel_register_typed_name(name, types);
s = sel_register_typed_name(selName, types);
}
}
return s;