From 3da53eec645563d03c1361ffb837df4bc947b100 Mon Sep 17 00:00:00 2001 From: gdr Date: Fri, 3 Oct 1997 04:15:03 +0000 Subject: [PATCH] - added some #include guards - added a #pragma debug 0 for variadic routines --- usr.bin/tr/tr.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c index be8598a..611ca22 100644 --- a/usr.bin/tr/tr.c +++ b/usr.bin/tr/tr.c @@ -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 -#endif +#ifndef _GNO_GNO_H_ #include +#endif static void report_stack(void) { fprintf(stderr,"\n ==> %d stack bytes used <== \n", _endStackCheck()); @@ -331,6 +330,11 @@ usage(void) #include #endif +#ifdef __ORCAC__ +/* ORCA/C cannot handle debugging with variable args */ +#pragma debug 0 +#endif + void #if __STDC__ err(const char *fmt, ...)