1 $NetBSD: patch-ag,v 1.3 1999/09/06 16:37:42 tron Exp $
3 --- debug.c.orig Tue Jan 12 19:59:35 1993
4 +++ debug.c Mon Sep 6 18:37:05 1999
7 # include <X11/Intrinsic.h>
17 +extern AppData app_data;
21 -debug_printf(va_alist)
23 +debug_printf(int p, char *fmt, ...)
31 - * first arg is whether or not to print.
33 - if ((va_arg(args, int) == 0) || (debug == False))
34 + if (p == 0 || app_data.debug == False) {
37 - fmt = va_arg(args, char *);
39 + va_start(args, fmt);
40 vfprintf(stdout, fmt, args);