bugGNUstep - Bugs: bug #40925, NSStreamDelegate protocol for clang

Group
 
 

bug #40925: NSStreamDelegate protocol for clang

Submitter:  Marcus Müller <znek>
Submitted:  Mon 16 Dec 2013 04:45:08 PM UTC
   
 
Category:  Base/Foundation Severity:  3 - Normal
Item Group:  Change Request Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 20 Dec 2013 10:02:43 AM UTC, comment #1: 

Thanks … I applied that patch

Richard Frith-Macdonald <CaS>
Group Member
Mon 16 Dec 2013 04:45:08 PM UTC, original submission:  

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
 

Marcus Müller <znek>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by znek (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-12-20 CaS StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code