On Wed, Feb 19, 2003 at 12:20:04PM -0800, Keith Packard wrote: >Around 15 o'clock on Feb 19, Stuart Anderson wrote: > >> This approach strikes me as being inherently non-portable wrt the module ABI. >> setjmp/longjmp are too system specific to be used in modules. > >Yes, they are rather system specific, but FreeType2 uses setjmp and longjmp >extensively for error recovery. Disallowing setjmp and longjmp would >make using FreeType2 rather difficult. > >I believe the approach taken will at least work in the majority of cases, >as long as setjmp/longjmp are exported as regular functions and jmp_buf >is no larger than xf86jmp_buf. Because the system setjmp.h is included >when referencing those functions, it may be wise to place a check there to >ensure xf86jmp_buf is large enough; that would catch systems for which >this technique will fail.
Yes, I think that should work (providing we don't get too much other stuff included as a result of including setjmp.h directly). I'd set the size of xf86jmp_buf to something "large". Maybe 4K would be sufficiently large without being excessive? David -- David Dawes Release Engineer/Architect The XFree86 Project www.XFree86.org/~dawes _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel
