mirror of
https://github.com/GnoConsortium/gno.git
synced 2025-01-21 12:29:42 +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__
|
||||
*
|
||||
* 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_
|
||||
#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
|
||||
|
||||
@ -106,7 +107,7 @@ main(int argc,
|
||||
int ch;
|
||||
|
||||
#if defined(__GNO__) && defined(__STACK_CHECK__)
|
||||
begin_stack_check();
|
||||
_beginStackCheck();
|
||||
atexit(report_stack);
|
||||
#endif
|
||||
dchar = '\t'; /* default delimiter is \t */
|
||||
|
Loading…
x
Reference in New Issue
Block a user