File: Debug.c

package info (click to toggle)
gopher 2.3-2
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,364 kB
  • ctags: 2,030
  • sloc: ansic: 22,451; perl: 1,950; sh: 1,510; makefile: 397; asm: 1
file content (58 lines) | stat: -rw-r--r-- 1,277 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/********************************************************************
 * $Author: lindner $
 * $Revision: 3.3 $
 * $Date: 1994/01/21 04:07:21 $
 * $Source: /home/arcwelder/GopherSrc/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 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 <stdio.h>

int DEBUG = 0;

#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#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);
}