Annotation of 43BSDTahoe/new/X/Xlib/XErrHndlr.c, revision 1.1

1.1     ! root        1: #include <X/mit-copyright.h>
        !             2: 
        !             3: /* $Header: XErrHndlr.c,v 10.5 86/11/24 15:05:45 jg Rel $ */
        !             4: /* Copyright    Massachusetts Institute of Technology    1985  */
        !             5: 
        !             6: #include "XlibInternal.h"
        !             7: #undef _XError
        !             8: extern int _XError();
        !             9: 
        !            10: /* 
        !            11:  * XErrorHandler - This proceedure sets the X non-fatal error handler
        !            12:  * (_XErrorFunction) to be the specified routine.  If NULL is passed in
        !            13:  * the original error handler is restored.
        !            14:  */
        !            15:  
        !            16: XErrorHandler(handler)
        !            17:     register int (*handler)();
        !            18: {
        !            19:     if (handler != NULL) {
        !            20:        _XErrorFunction = handler;
        !            21:     }
        !            22:     else {
        !            23:        _XErrorFunction = _XError;
        !            24:     }
        !            25: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.