From 7b5633cea041565b6dde0ca14caaab75bcaa17ee Mon Sep 17 00:00:00 2001 From: das Date: Sat, 10 Nov 2007 03:40:17 +0000 Subject: fix typos, formatting and non-unix breakage (due to undefined stackGrowsDown) --- generic/tclBasic.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 222261a..09ec05d 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.271 2007/11/09 21:35:17 msofer Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.272 2007/11/10 03:40:17 das Exp $ */ #include "tclInt.h" @@ -334,10 +334,9 @@ static const OpCmdInfo mathOpCmds[] = { {0}, NULL } }; - #ifdef TCL_NO_STACK_CHECK #define CheckStackSpace(interp, localIntPtr) 1 -#else /* stack checlk enabled */ +#else /* stack check enabled */ #ifdef _TCLUNIXPORT /* * A unix system: cache the stack check parameters. @@ -345,6 +344,9 @@ static const OpCmdInfo mathOpCmds[] = { static int stackGrowsDown = 1; +#define GetCStackParams(iPtr) \ + stackGrowsDown = TclpGetCStackParams(&(iPtr)->stackBound) + #define CheckStackSpace(iPtr, localIntPtr) \ (stackGrowsDown \ ? ((localIntPtr) > (iPtr)->stackBound) \ @@ -355,13 +357,12 @@ static int stackGrowsDown = 1; * FIXME: can we do something similar for other platforms, especially windows? */ -#define TclpGetCStackParams(foo) 1; +#define GetCStackParams(iPtr) #define CheckStackSpace(interp, localIntPtr) \ TclpCheckStackSpace() #endif #endif - /* *---------------------------------------------------------------------- @@ -612,7 +613,7 @@ Tcl_CreateInterp(void) iPtr->pendingObjDataPtr = NULL; iPtr->asyncReadyPtr = TclGetAsyncReadyPtr(); - stackGrowsDown = TclpGetCStackParams(&iPtr->stackBound); + GetCStackParams(iPtr); /* * Create the core commands. Do it here, rather than calling -- cgit v0.12