/******************************************************************** * $Author: jgoerzen $ * $Revision: 1.1.1.1 $ * $Date: 2000/08/19 00:28:56 $ * $Source: /var/cvs/gopher/object/Debug.c,v $ * $State: Exp $ * * Paul Lindner, University of Minnesota CIS. * * Copyright 1991, 92, 93 by the Regents of the University of Minnesota * see the file "Copyright" in the distribution for conditions of use. ********************************************************************* * MODULE: Debug.c * Debugging utilities.. ********************************************************************* * Revision History: * $Log: Debug.c,v $ * Revision 1.1.1.1 2000/08/19 00:28:56 jgoerzen * Import from UMN Gopher 2.3.1 after GPLization * * Revision 3.3 1994/01/21 04:07:21 lindner * Update function declaration (alanc) * * Revision 3.2 1993/07/29 20:00:22 lindner * Added Debugf * * *********************************************************************/ #include int DEBUG = 0; #ifdef __STDC__ #include #else #include #endif #ifdef __STDC__ void Debugf(const char *fmt, ...) #else /* !__STDC__ */ void Debugf(fmt, va_alist) char *fmt; va_dcl #endif /* __STDC__ */ { va_list args; #ifdef __STDC__ va_start(args, fmt); #else va_start(args); #endif (void) vfprintf(stderr, fmt, args); }