File: no-gc-macros.patch

package info (click to toggle)
dbuskit 0.1.1-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,948 kB
  • sloc: objc: 10,544; sh: 9,464; ansic: 200; makefile: 33
file content (36 lines) | stat: -rw-r--r-- 1,063 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Remove GC macros as GC is gone from base
Origin: upstream, commit:r39612
Bug-Debian: https://bugs.debian.org/878051
Forwarded: not-needed
Last-Update: 2017-10-09
---

--- dbuskit.orig/Source/DKNotificationCenter.m
+++ dbuskit/Source/DKNotificationCenter.m
@@ -514,7 +514,7 @@
   {
     return nil;
   }
-  observer = GS_GC_HIDE(anObserver);
+  observer = anObserver;
   selector = aSelector;
 
   // Make sure the necessary components are there and that the selector takes a
@@ -530,7 +530,7 @@
 
 - (id)observer
 {
-  return GS_GC_UNHIDE(observer);
+  return observer;
 }
 
 - (SEL)selector
@@ -556,7 +556,7 @@
   // callback and need to avoid the reentrancy. We do this by scheduling
   // delivery of the notification on the run loop.
   [[NSRunLoop currentRunLoop] performSelector: selector
-                                      target: GS_GC_UNHIDE(observer)
+                                      target: observer
 				    argument: notification
 				       order: UINT_MAX
 				       modes: [NSArray arrayWithObject: NSDefaultRunLoopMode]];