DEBUG 22-SEP-1995 18:31:41 VAX C V3.2-044 Page 1 V1.0 20-JAN-1994 22:07:22 [GOPHER.G2.VMS2_13.OBJECT]DEBUG.C;1 (1) 1 /******************************************************************** 2 * lindner 3 * 3.3 4 * 1994/01/21 04:07:21 5 * /home/arcwelder/GopherSrc/CVS/gopher+/object/Debug.c,v 6 * Exp 7 * 8 * Paul Lindner, University of Minnesota CIS. 9 * 10 * Copyright 1991, 92, 93 by the Regents of the University of Minnesota 11 * see the file "Copyright" in the distribution for conditions of use. 12 ********************************************************************* 13 * MODULE: Debug.c 14 * Debugging utilities.. 15 ********************************************************************* 16 * Revision History: 17 * Debug.c,v 18 * Revision 3.3 1994/01/21 04:07:21 lindner 19 * Update function declaration (alanc) 20 * 21 * Revision 3.2 1993/07/29 20:00:22 lindner 22 * Added Debugf 23 * 24 * 25 *********************************************************************/ 26 27 #include 289 290 int DEBUG = 0; 291 292 #ifdef __STDC__ 293 X #include 294 #else 295 #include 326 #endif 327 328 329 #ifdef __STDC__ 330 X void Debugf(const char *fmt, ...) 331 #else /* !__STDC__ */ 332 void 333 Debugf(fmt, va_alist) 334 char *fmt; 335 va_dcl 336 #endif /* __STDC__ */ 337 338 { 339 1 va_list args; 340 1 341 1 #ifdef __STDC__ 342 X va_start(args, fmt); 343 1 #else 344 1 va_start(args); 345 1 #endif 346 1 DEBUG 22-SEP-1995 18:31:41 VAX C V3.2-044 Page 2 V1.0 20-JAN-1994 22:07:22 [GOPHER.G2.VMS2_13.OBJECT]DEBUG.C;1 (1) 347 1 (void) vfprintf(stderr, fmt, args); 348 1 } 349 Command Line ------------ CC/INCL=([-],[-.OBJECT])/DEFINE=(MULTINET=1,DEBUGGING,__VMS)/DEBUG/NOOPT/OBJ=[.VAX.DBG]/LIS=[.VAX.LIS] DEBUG.C .