[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #34914] TRUE / FALSE not defined
From: |
julian |
Subject: |
[bug #34914] TRUE / FALSE not defined |
Date: |
Sun, 27 Nov 2011 18:44:46 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22 |
URL:
<http://savannah.gnu.org/bugs/?34914>
Summary: TRUE / FALSE not defined
Project: GNUstep
Submitted by: julian_
Submitted on: So 27 Nov 2011 18:44:44 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 porting cocoa apps a common problem seems to be that TRUE and FALSE do
not seem to be defined on gnustep. TRUE and FALSE are used mostly
interchangeable with YES and NO in cocoa code.
it would be great if gnustep could define these. possibly in Cocoa.h?
what i don't get is that gnustep itself uses TRUE/FALSE in quite a few places
(70 occurrences). most of these seem to be in windows specific places, but a
few of them seem to be in the linux code...how can this even work if it isnt
defined?
as far as compatibility macros are concerned it would also be great if the
following ones could be included, they greatly help portability. of course
they should only be defined if CoreBase is not available:
typedef NSSize CGSize;
typedef NSRect CGRect;
typedef NSPoint CGPoint;
typedef NSTimeInterval CFTimeInterval;
typedef CFTimeInterval CFAbsoluteTime;
#define CGSizeMake NSMakeSize
#define CGRectMake NSMakeRect
#define CGPointMake NSMakePoint
#define NSRectFromCGRect(x) (x)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34914>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug #34914] TRUE / FALSE not defined,
julian <=