- inserted identifier line

- changed to use v2.0.6 stack routines
This commit is contained in:
gdr 1997-09-26 06:27:59 +00:00
parent b0e785a02a
commit 2a0f0ad491

View File

@ -39,6 +39,8 @@
* Changes not related to compiler are replaced using #ifndef __GNO__
*
* Added prototyped headers, surrounded by #ifndef __STDC__
*
* $Id: wc.c,v 1.2 1997/09/26 06:27:59 gdr Exp $
*/
@ -54,7 +56,7 @@ static const char copyright[] =
static const char sccsid[] = "@(#)wc.c 8.1 (Berkeley) 6/6/93";
#else
static const char rcsid[] =
"$Id: wc.c,v 1.1 1997/09/17 06:31:05 gdr Exp $";
"$Id: wc.c,v 1.2 1997/09/26 06:27:59 gdr Exp $";
#endif
#endif /* not lint */
#endif
@ -86,11 +88,10 @@ void usage __P((void));
#ifndef _STDLIB_H_
#include <stdlib.h>
#endif
extern void begin_stack_check(void);
extern int end_stack_check(void);
#include <gno/gno.h>
static void report_stack(void)
{
fprintf(stderr,"\n ==> %d stack bytes used <== \n", end_stack_check());
fprintf(stderr,"\n ==> %d stack bytes used <== \n", _endStackCheck());
}
#endif
@ -109,7 +110,7 @@ main(int argc,
int errors, total;
#if defined(__GNO__) && defined(__STACK_CHECK__)
begin_stack_check();
_beginStackCheck();
atexit(report_stack);
#endif
#ifndef __GNO__