GNUStep on Windows

2010-01-22 Thread Vincent R.
Hi, When will you switch to llvm on windows platform ? I can see from website that for now you are releasing a solution based on msys/mingw-4.4 and could it be possible to use a msys/llvm alternative ? Would it work ? ___ Gnustep-dev mailing list

Re: GNUStep on Windows

2010-01-22 Thread David Chisnall
On 22 Jan 2010, at 16:07, Vincent R. wrote: Hi, When will you switch to llvm on windows platform ? I can see from website that for now you are releasing a solution based on msys/mingw-4.4 and could it be possible to use a msys/llvm alternative ? Would it work ? Clang will probably

Implementing CFSTR() in corebase

2010-01-22 Thread Stef Bidi
Fred and I have been discussing how to implement this function/macro for use with corebase. If you haven't noticed yet CFSTR() is not currently implemented in corebase. The problem we've been running into is how is constant strings implemented in ObjC. Using a test and the GCC manual we were

Re: Implementing CFSTR() in corebase

2010-01-22 Thread David Chisnall
Hi Stef, I had this discussion with Eric yesterday, so good timing... On OS X, CSTR() calls one of two functions. One is a builtin that tells the compiler to emit a CFString. This is implemented in Clang, but currently emits a CFString on all platforms. It would be a relatively minor

Re: Implementing CFSTR() in corebase

2010-01-22 Thread Richard Frith-Macdonald
On 22 Jan 2010, at 16:33, Stef Bidi wrote: Fred and I have been discussing how to implement this function/macro for use with corebase. If you haven't noticed yet CFSTR() is not currently implemented in corebase. The problem we've been running into is how is constant strings implemented

Re: Implementing CFSTR() in corebase

2010-01-22 Thread David Chisnall
P.S. When Apple broke the ABI for OS X 10.0, they changed the layout of constant strings quite significantly. Static CF strings can be stored in different encodings, for example, so you can have UTF16 CF strings if UTF16 takes less space for your particular character set. As I haven't

Re: [bug #28590] Cairo backend displays wrong colors on X server with a different endianness

2010-01-22 Thread Fred Kiefer
Am 20.01.2010 20:52, schrieb Derek Fawcus: [from bug-gnustep] On Wed, Jan 20, 2010 at 02:47:38PM +, Fred Kiefer wrote: And we only need to change any code in the case where we don't use shared memory (this is for some reason broken on modern X Servers and I don't have a clue).

Re: GNUStep on Windows

2010-01-22 Thread Vincent R.
On Fri, 22 Jan 2010 16:12:18 +, David Chisnall thera...@sucs.org wrote: On 22 Jan 2010, at 16:07, Vincent R. wrote: Hi, When will you switch to llvm on windows platform ? I can see from website that for now you are releasing a solution based on msys/mingw-4.4 and could it be possible

Re: GNUStep on Windows

2010-01-22 Thread David Chisnall
On 22 Jan 2010, at 17:22, Vincent R. wrote: Ok I will test asap but could you please tell me something before I test, is it possible to use LLVM/clang to link with a msvc import lib ? Same question for mingw. I've no idea. Clang has some Visual Studio support, and can interact with the

Re: Implementing CFSTR() in corebase

2010-01-22 Thread Stef Bidi
On Fri, Jan 22, 2010 at 11:16 AM, Richard Frith-Macdonald rich...@tiptree.demon.co.uk wrote: However, as I understand it, the idea is that this (corebase) should be built on top of GNUstep-base, so as we know it's always going to be linked with the base library, it might be possible to take

Re: Implementing CFSTR() in corebase

2010-01-22 Thread Richard Frith-Macdonald
On 22 Jan 2010, at 17:41, Stef Bidi wrote: On Fri, Jan 22, 2010 at 11:16 AM, Richard Frith-Macdonald rich...@tiptree.demon.co.uk wrote: However, as I understand it, the idea is that this (corebase) should be built on top of GNUstep-base, so as we know it's always going to be linked with

Re: Implementing CFSTR() in corebase

2010-01-22 Thread David Chisnall
Richard wrote: Maybe you can initialize the 'isa' field to __objc_class_ref_NSConstantString if you predeclare that some way? Yes, that would be nice, wouldn't it? Except that the GNU ObjC ABI doesn't work like that at all. __objc_class_ref_NSConstantString is a linker symbol that points

Re: Implementing CFSTR() in corebase

2010-01-22 Thread Eric Wasylishen
On 2010-01-22, at 9:53 AM, David Chisnall wrote: Hi Stef, I had this discussion with Eric yesterday, so good timing... On OS X, CSTR() calls one of two functions. Hi, On a related note, regarding Opal, David and I decided that Opal should just use Foundation directly (internally).

Re: Implementing CFSTR() in corebase

2010-01-22 Thread Vincent R.
On Fri, 22 Jan 2010 13:26:00 -0700, Eric Wasylishen ewasylis...@gmail.com wrote: On 2010-01-22, at 9:53 AM, David Chisnall wrote: Hi Stef, I had this discussion with Eric yesterday, so good timing... On OS X, CSTR() calls one of two functions. Hi, On a related note, regarding

Re: Implementing CFSTR() in corebase

2010-01-22 Thread Eric Wasylishen
On 2010-01-22, at 3:26 PM, Vincent R. wrote: On Fri, 22 Jan 2010 13:26:00 -0700, Eric Wasylishen ewasylis...@gmail.com wrote: On 2010-01-22, at 9:53 AM, David Chisnall wrote: Hi Stef, I had this discussion with Eric yesterday, so good timing... On OS X, CSTR() calls one of two

Re: Implementing CFSTR() in corebase

2010-01-22 Thread David Chisnall
On 23 Jan 2010, at 00:43, Stef Bidi wrote: - We need constant Obj-C/CF strings - it sounds like it is best to just use @ It sure looks that! I've just added __builtin___NSStringMakeConstantString() to clang, which emits a constant Objective-C string from the (constant C string)