mirror of
https://github.com/GnoConsortium/gno.git
synced 2025-02-24 22:29:12 +00:00
- added some #include guards
- added a #pragma debug 0 for variadic routines
This commit is contained in:
parent
53b34aa122
commit
3da53eec64
@ -40,7 +40,7 @@
|
|||||||
*
|
*
|
||||||
* Added prototyped headers, surrounded by #ifndef __STDC__
|
* Added prototyped headers, surrounded by #ifndef __STDC__
|
||||||
*
|
*
|
||||||
* $Id: tr.c,v 1.2 1997/09/24 06:23:13 gdr Exp $
|
* $Id: tr.c,v 1.3 1997/10/03 04:15:03 gdr Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
@ -112,10 +112,9 @@ static void usage __P((void));
|
|||||||
|
|
||||||
/* Interface to check on how much stack space a C program uses. */
|
/* Interface to check on how much stack space a C program uses. */
|
||||||
#if defined(__GNO__) && defined(__STACK_CHECK__)
|
#if defined(__GNO__) && defined(__STACK_CHECK__)
|
||||||
#ifndef _STDLIB_H_
|
#ifndef _GNO_GNO_H_
|
||||||
#include <stdlib.h>
|
|
||||||
#endif
|
|
||||||
#include <gno/gno.h>
|
#include <gno/gno.h>
|
||||||
|
#endif
|
||||||
static void report_stack(void)
|
static void report_stack(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr,"\n ==> %d stack bytes used <== \n", _endStackCheck());
|
fprintf(stderr,"\n ==> %d stack bytes used <== \n", _endStackCheck());
|
||||||
@ -331,6 +330,11 @@ usage(void)
|
|||||||
#include <varargs.h>
|
#include <varargs.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __ORCAC__
|
||||||
|
/* ORCA/C cannot handle debugging with variable args */
|
||||||
|
#pragma debug 0
|
||||||
|
#endif
|
||||||
|
|
||||||
void
|
void
|
||||||
#if __STDC__
|
#if __STDC__
|
||||||
err(const char *fmt, ...)
|
err(const char *fmt, ...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user