- added some #include guards

- added a #pragma debug 0 for variadic routines
This commit is contained in:
gdr 1997-10-03 04:15:03 +00:00
parent 53b34aa122
commit 3da53eec64

View File

@ -40,7 +40,7 @@
*
* Added prototyped headers, surrounded by #ifndef __STDC__
*
* $Id: tr.c,v 1.2 1997/09/24 06:23:13 gdr Exp $
* $Id: tr.c,v 1.3 1997/10/03 04:15:03 gdr Exp $
*/
@ -112,10 +112,9 @@ static void usage __P((void));
/* Interface to check on how much stack space a C program uses. */
#if defined(__GNO__) && defined(__STACK_CHECK__)
#ifndef _STDLIB_H_
#include <stdlib.h>
#endif
#ifndef _GNO_GNO_H_
#include <gno/gno.h>
#endif
static void report_stack(void)
{
fprintf(stderr,"\n ==> %d stack bytes used <== \n", _endStackCheck());
@ -331,6 +330,11 @@ usage(void)
#include <varargs.h>
#endif
#ifdef __ORCAC__
/* ORCA/C cannot handle debugging with variable args */
#pragma debug 0
#endif
void
#if __STDC__
err(const char *fmt, ...)