Updated names for stack checking routines.

This commit is contained in:
gdr 1997-09-24 06:23:13 +00:00
parent a5ad3a71b7
commit 4da093616e

View File

@ -39,6 +39,8 @@
* Changes not related to compiler are replaced using #ifndef __GNO__
*
* Added prototyped headers, surrounded by #ifndef __STDC__
*
* $Id: tr.c,v 1.2 1997/09/24 06:23:13 gdr Exp $
*/
@ -113,11 +115,10 @@ static 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
@ -136,7 +137,7 @@ main(int argc,
int cflag, dflag, sflag, isstring2;
#if defined(__GNO__) && defined(__STACK_CHECK__)
begin_stack_check();
_beginStackCheck();
atexit(report_stack);
#endif
#ifndef __GNO__