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. -keith _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel