mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-11-15 15:07:16 +00:00
changed to use v2.0.6 stack routines
This commit is contained in:
parent
3cec7d7d1f
commit
5fc597eb5e
@ -53,7 +53,7 @@ static const char copyright[] =
|
|||||||
static char sccsid[] = "@(#)head.c 8.2 (Berkeley) 5/4/95";
|
static char sccsid[] = "@(#)head.c 8.2 (Berkeley) 5/4/95";
|
||||||
#endif
|
#endif
|
||||||
static const char rcsid[] =
|
static const char rcsid[] =
|
||||||
"$Id: head.c,v 1.1 1997/09/17 05:43:50 gdr Exp $";
|
"$Id: head.c,v 1.2 1997/09/26 06:20:06 gdr Exp $";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -84,11 +84,10 @@ int eval;
|
|||||||
#ifndef _STDLIB_H_
|
#ifndef _STDLIB_H_
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
extern void begin_stack_check(void);
|
#include <gno/gno.h>
|
||||||
extern int end_stack_check(void);
|
|
||||||
static void report_stack(void)
|
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
|
#endif
|
||||||
|
|
||||||
@ -108,7 +107,7 @@ main(int argc, char *argv[])
|
|||||||
char *ep;
|
char *ep;
|
||||||
|
|
||||||
#if defined(__GNO__) && defined(__STACK_CHECK__)
|
#if defined(__GNO__) && defined(__STACK_CHECK__)
|
||||||
begin_stack_check();
|
_beginStackCheck();
|
||||||
atexit(report_stack);
|
atexit(report_stack);
|
||||||
#endif
|
#endif
|
||||||
obsolete(argv);
|
obsolete(argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user