mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 09:41:15 +00:00
Fixed C99ism.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32381 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b718e8bdd4
commit
9234b0af72
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ void _Block_release(void *);
|
||||||
+ (void)load
|
+ (void)load
|
||||||
{
|
{
|
||||||
unsigned int methodCount;
|
unsigned int methodCount;
|
||||||
|
Method *m = methods = NULL;
|
||||||
Method *methods =
|
Method *methods =
|
||||||
class_copyMethodList(self, &methodCount);
|
class_copyMethodList(self, &methodCount);
|
||||||
id blockClass = objc_lookUpClass("_NSBlock");
|
id blockClass = objc_lookUpClass("_NSBlock");
|
||||||
|
@ -22,7 +23,7 @@ void _Block_release(void *);
|
||||||
|
|
||||||
// Copy all of the methods in this class onto the block-runtime-provided
|
// Copy all of the methods in this class onto the block-runtime-provided
|
||||||
// _NSBlock
|
// _NSBlock
|
||||||
for (Method *m = methods ; NULL!=*m ; m++)
|
for (m = methods ; NULL!=*m ; m++)
|
||||||
{
|
{
|
||||||
class_addMethod(blockClass, method_getName(*m),
|
class_addMethod(blockClass, method_getName(*m),
|
||||||
method_getImplementation(*m), method_getTypeEncoding(*m));
|
method_getImplementation(*m), method_getTypeEncoding(*m));
|
||||||
|
|
Loading…
Reference in a new issue