From: Alan Cox Date: Sat, 6 Jun 2015 21:56:14 +0000 (+0100) Subject: stak.h: remove // prototypes and warnings X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=40ed49bb3caab80be38636f8afcc3736424d64c2;p=FUZIX.git stak.h: remove // prototypes and warnings --- diff --git a/Applications/V7/cmd/sh/stak.h b/Applications/V7/cmd/sh/stak.h index db95a9d6..56b623b1 100644 --- a/Applications/V7/cmd/sh/stak.h +++ b/Applications/V7/cmd/sh/stak.h @@ -17,7 +17,7 @@ * d) `absstak' gives real address if needed */ #define relstak() (staktop-stakbot) -#define absstak(x) (stakbot+Rcheat(x)) +#define absstak(x) (stakbot+((intptr_t)(x))) #define setstak(x) (staktop=absstak(x)) #define pushstak(c) (*staktop++=(c)) #define zerostak() (*staktop=0) @@ -36,7 +36,7 @@ /* for local use only since it hands * out a real address for the stack top */ -//STKPTR locstak(); +/*STKPTR locstak();*/ /* Will allocate the item being used and return its * address (safe now). @@ -46,15 +46,15 @@ /* For use after `locstak' to hand back * new stack top and then allocate item */ -//STKPTR endstak(); +/*STKPTR endstak();*/ /* Copy a string onto the stack and * allocate the space. */ -//STKPTR cpystak(); +/*STKPTR cpystak();*/ /* Allocate given ammount of stack space */ -//STKPTR getstak(); +/*STKPTR getstak();*/ /* A chain of ptrs of stack blocks that * have become covered by heap allocation. @@ -75,4 +75,4 @@ extern STKPTR stakbot; extern STKPTR staktop; /* Used with tdystak */ -//STKPTR savstak(); +/*STKPTR savstak();*/