bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ASSIGN macro.


From: Anibal Rindisbacher
Subject: ASSIGN macro.
Date: Mon, 15 Mar 2010 17:31:43 -0200

Maybe because I don't like garbage collection, I found this.

The actual definition of ASSIGN in a non gc environment make that things like appear in NSDocument.m expand like this:
object = ((id)(url && [url isFileUrl]) ? [url path] : (NSString*)nil; )

This apply the cast to BOOL and compiler warning. The possible solution is modify the call in NSDocument, adding parenthesis, or modify ASSiGN macro.

The second (GSServiceManager) str never initialize, because exists the possibility of str is nil, I initialize in this manner.

Anibal

Attachment: GSServicesManager.patch
Description: Binary data

Attachment: GNUstep.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]