1: #include <X/mit-copyright.h> 2: 3: /* $Header: XIOErrHndlr.c,v 10.4 86/02/01 15:35:36 tony Rel $ */ 4: /* Copyright Massachusetts Institute of Technology 1985 */ 5: 6: #include "XlibInternal.h" 7: 8: /* 9: * XIOErrorHandler - This proceedure sets the X fatal I/O error handler 10: * (_XIOErrorFunction) to be the specified routine. If NULL is passed in 11: * the original error handler is restored. 12: */ 13: 14: XIOErrorHandler(handler) 15: register int (*handler)(); 16: { 17: if (handler != NULL) { 18: _XIOErrorFunction = handler; 19: } 20: else { 21: _XIOErrorFunction = _XIOError; 22: } 23: }