mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-06-30 16:29:47 +00:00
changed to use v2.0.6 stack routines
This commit is contained in:
parent
d52e9de6e8
commit
55003d4505
|
@ -42,6 +42,8 @@
|
||||||
* Changes not related to compiler are replaced using #ifndef __GNO__
|
* Changes not related to compiler are replaced using #ifndef __GNO__
|
||||||
*
|
*
|
||||||
* Added prototyped headers, surrounded by #ifndef __STDC__
|
* Added prototyped headers, surrounded by #ifndef __STDC__
|
||||||
|
*
|
||||||
|
* $Id: cut.c,v 1.2 1997/09/26 06:34:37 gdr Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,11 +84,10 @@ static void usage __P((void));
|
||||||
#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
|
||||||
|
|
||||||
|
@ -106,7 +107,7 @@ main(int argc,
|
||||||
int ch;
|
int ch;
|
||||||
|
|
||||||
#if defined(__GNO__) && defined(__STACK_CHECK__)
|
#if defined(__GNO__) && defined(__STACK_CHECK__)
|
||||||
begin_stack_check();
|
_beginStackCheck();
|
||||||
atexit(report_stack);
|
atexit(report_stack);
|
||||||
#endif
|
#endif
|
||||||
dchar = '\t'; /* default delimiter is \t */
|
dchar = '\t'; /* default delimiter is \t */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user