On Thu, Feb 20, 2003 at 01:50:35PM +0000, Dr Andrew C Aitchison wrote:
>On Thu, 20 Feb 2003, Egbert Eich wrote:
>
>> Guys, please bear with me: why do we need this typedef for
>> xf86jmp_buf at all? This buffer is normally allocated with 
>> something like:
>> 
>> buf = malloc(sizeof(jmp_buf));
>> 
>> When setjmp.h is included this size is known at compile time.
>> We'd just have to get rid of the defines for xf86jmp_buf
>> in xf86_libc.h (as well as the defines for xf86set/longjmp)
>> and everything should be OK. The the alias isn't needed either.
>
>I may not know what I'm talking about.
>
>I thought that the problem was that modules are supposed to work
>across operating system and compiler, so the compile-time size
>might not be big enough when the module is run on a different system.

Yes, that's right.  Also, with the proposed change, the module won't be
including setjmp.h directly anyway.

David
--
David Dawes
Release Engineer/Architect                      The XFree86 Project
www.XFree86.org/~dawes
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to