public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in gnustep-apps/gridlock/files: gridlock-1.10-objcruntime.patch
@ 2011-08-19  9:43 Bernard Cafarelli (voyageur)
  0 siblings, 0 replies; 2+ messages in thread
From: Bernard Cafarelli (voyageur) @ 2011-08-19  9:43 UTC (permalink / raw
  To: gentoo-commits

voyageur    11/08/19 09:43:40

  Added:                gridlock-1.10-objcruntime.patch
  Log:
  Fix runtime headers inclusion, from debian bug 629202. Fixes bug #374951
  
  (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  gnustep-apps/gridlock/files/gridlock-1.10-objcruntime.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-apps/gridlock/files/gridlock-1.10-objcruntime.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-apps/gridlock/files/gridlock-1.10-objcruntime.patch?rev=1.1&content-type=text/plain

Index: gridlock-1.10-objcruntime.patch
===================================================================
--- gridlock.app-1.10.orig/EDObjcRuntime.h
+++ gridlock.app-1.10/EDObjcRuntime.h
@@ -44,16 +44,15 @@
 #else /* GNU_RUNTIME */
 
 
-#import <objc/objc.h>
-#import <objc/objc-api.h>
+#import <objc/runtime.h>
 
 #define EDObjcMsgSend(obj, sel) objc_msg_lookup((obj), (sel))((obj), (sel))
 #define EDObjcMsgSend1(obj, sel, obj1) objc_msg_lookup((obj), (sel))((obj), (sel), (obj1))
 #define EDObjcMsgSend2(obj, sel, obj1, obj2) objc_msg_lookup((obj), (sel))((obj), (sel), (obj1), (obj2))
 #define EDObjcMsgSend3(obj, sel, obj1, obj2, obj3) objc_msg_lookup((obj), (sel))((obj), (sel), (obj1), (obj2), (obj3))
-#define EDObjcMethodInfo Method_t
-#define EDObjcClassGetInstanceMethod class_get_instance_method
-#define EDObjcClassGetClassMethod class_get_class_method
+#define EDObjcMethodInfo Method
+#define EDObjcClassGetInstanceMethod class_getInstanceMethod
+#define EDObjcClassGetClassMethod class_getClassMethod
 
 #endif
 
--- gridlock.app-1.10.orig/NSObject+Extensions.m
+++ gridlock.app-1.10/NSObject+Extensions.m
@@ -173,13 +173,16 @@ NSArray *EDSubclassesOfClass(Class aClas
 #endif
 #else /* GNU_RUNTIME */
     NSMutableArray *subclasses;
-    Class subClass;
-    void *es = NULL;
+    Class *classes;
+    int i, numClasses;
 
     subclasses = [NSMutableArray array];
-    while((subClass = objc_next_class(&es)) != Nil)
-        if(EDClassIsSuperclassOfClass(aClass, subClass) == YES)
-            [subclasses addObject:subClass];
+    numClasses = objc_getClassList(NULL, 0);
+    classes = (Class *)NSZoneMalloc(NULL, numClasses * sizeof(Class));
+    numClasses = objc_getClassList(classes, numClasses);
+    for (i = 0; i < numClasses; i++)
+      [subclasses addObject:classes[i]];
+    NSZoneFree(NULL, classes);
 
     return subclasses;
 #endif






^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in gnustep-apps/gridlock/files: gridlock-1.10-objcruntime.patch
@ 2012-03-14 23:27 Bernard Cafarelli (voyageur)
  0 siblings, 0 replies; 2+ messages in thread
From: Bernard Cafarelli (voyageur) @ 2012-03-14 23:27 UTC (permalink / raw
  To: gentoo-commits

voyageur    12/03/14 23:27:44

  Removed:              gridlock-1.10-objcruntime.patch
  Log:
  Last rites for gnustep-apps/cynthiune, gnustep-apps/gridlock, gnustep-apps/talksoup, bug #380433



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-14 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 23:27 [gentoo-commits] gentoo-x86 commit in gnustep-apps/gridlock/files: gridlock-1.10-objcruntime.patch Bernard Cafarelli (voyageur)
  -- strict thread matches above, loose matches on Subject: below --
2011-08-19  9:43 Bernard Cafarelli (voyageur)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox