Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!apollo!oj From: oj@apollo.uucp (Ellis Oliver Jones) Newsgroups: comp.windows.x Subject: why is Xlib V11's error handler a function of type int? Message-ID: <392b7952.d5b2@apollo.uucp> Date: 20 Dec 87 03:13:00 GMT Organization: Apollo Computer, Chelmsford, Mass. Lines: 14 The XSetErrorHandler documentation in the Xlib manual, section 8.10.2, states that a user-specified error handler should be a function of type int. However, X.V11R1/lib/X/XNextEvent.c discards the function return value from _XError, which in turn comes from the error handler. Likewise, all the other callers of _XError discard the return value. The default error handler returns 0. So, my question is--was there some reason (such as the extension mechanism) that error handlers were functions? Is there a meaning (albeit nothing but hooks to the future) assigned to non-zero return values? Thanks. /oj/Apollo Computer, Inc./