URL:
  <http://savannah.gnu.org/bugs/?40925>

                 Summary: NSStreamDelegate protocol for clang
                 Project: GNUstep
            Submitted by: znek
            Submitted on: Mon 16 Dec 2013 04:45:08 PM GMT
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Change Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

When compiling with clang, the former informal NSStreamDelegate protocol can
be declared as a formal protocol, in order to increase compatibility with
Cocoa code.
This is as straightforward as other comparable code points in GNUstep:

Index: Headers/Foundation/NSStream.h
===================================================================
--- Headers/Foundation/NSStream.h       (revision 37467)
+++ Headers/Foundation/NSStream.h       (working copy)
@@ -270,10 +270,15 @@
 GS_EXPORT NSString * const NSStreamSOCKSProxyVersion5;
 GS_EXPORT NSString * const NSStreamSOCKSProxyVersionKey;
 
+#ifdef __clang__ /* FIXME ... this is not clang specific */
+@protocol NSStreamDelegate <NSObject>
+@optional
+#else
 /**
  * Informal protocol for delegates of instance of the [NSStream] class.
  */
-@interface     NSObject (NSStreamDelegate)
+@interface NSObject (NSStreamDelegate)
+#endif
 - (void) stream: (NSStream*)sStream handleEvent: (NSStreamEvent)anEvent;
 @end
 





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40925>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-gnustep

Reply via email to