phil@cs.city.ac.uk (Phil Thompson) (01/16/91)
I would like to set up a jmp_buf with setjmp(), create a widget and pass the jmp_buf to one of the widget's callbacks as client data. The callback will then longjmp() using it. Obviously I have to destroy the widget or remove the callback before the function containing the setjmp() returns, and that function must handle events somewhere. Is there anything in the nature of X that means that this technique is flawed? Is there a cleaner method? Thanks for any help, Phil Thompson (cs.city.ac.uk)