Sat Mar 1 11:54:02 1997 Sam Hartman <hartmans@luminous.MIT.EDU>
- * com_err.c: Make com_err_hook global instead of static to work around either NetBSD or Gcc bug.[383]
+ * com_err.h: Do not declare com_err_hook extern if you want it
+ static in the source file. [383]
+
Sat Feb 22 12:18:47 1997 Richard Basch <basch@lehman.com>
static void MacMessageBox(errbuf);
#endif
- et_old_error_hook_func com_err_hook = 0;
+static et_old_error_hook_func com_err_hook = 0;
static void default_com_err_proc
ET_P((const char FAR *whoami, errcode_t code,
const char FAR *fmt;
va_list ap;
{
- et_old_error_hook_func cef = com_err_hook;
- if (!cef)
+ if (!com_err_hook)
default_com_err_proc(whoami, code, fmt, ap);
else
- (cef)(whoami, code, fmt, ap);
+ (com_err_hook)(whoami, code, fmt, ap);
}
* may cause inappropriate display procedures to be called between
* applications under non-Unix environments.
*/
-extern et_old_error_hook_func com_err_hook;
+
extern et_old_error_hook_func set_com_err_hook
ET_P((et_old_error_hook_func));
extern et_old_error_hook_func reset_com_err_hook