> Is there anyway I can get very concrete examples of how to use the
> 'subject' error-handler? I've tried to compile from the instructions
> I've read on page 239 of your XFORMS manual without success. There
> doesn't appear to be any examples of its use in the DEMO files.
Hm. Sounds as if you have a *very* old version of XForms and the
manual -- the reference to fl_set_error_handler() is on page 262 in my
manual (0.88.1).
> I get alot of compile errors related to passing void parameters. A
> compilable user_handler routine with an example of a call to it
> would be very helpful.
#include <stdarg.h>
[...]
void my_handler( const char *where, const char *fmt, ... )
{
va_list list;
va_start( list, fmt );
fprintf( stderr, "You lose!\t" );
vfprintf( stderr, fmt, list );
fprintf( stderr, "\n" );
va_end( list );
exit( 1 );
}
[...]
fl_set_error_handler( my_handler );
[...]
The above code snipped prints a message and quits.
spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/