From e8528498a5d946c891689b8b82c5aa5f98fa534f Mon Sep 17 00:00:00 2001 From: rjohnson Date: Mon, 10 Aug 1998 17:18:36 +0000 Subject: fixed a few code style issues --- generic/tclNamesp.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index 6b0f3e8..3108197 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -33,6 +33,13 @@ #define FIND_ONLY_NS 0x1000 /* + * Initial sise of stack allocated space for tail list - used when resetting + * shadowed command references in the functin: TclResetShadowedCmdRefs. + */ + +#define NUM_TRAIL_ELEMS 5 + +/* * Count of the number of namespaces created. This value is used as a * unique id for each namespace. */ @@ -2206,7 +2213,6 @@ TclResetShadowedCmdRefs(interp, newCmdPtr) * storage if needed. */ -#define NUM_TRAIL_ELEMS 5 Namespace *(trailStorage[NUM_TRAIL_ELEMS]); Namespace **trailPtr = trailStorage; int trailFront = -1; @@ -2300,7 +2306,6 @@ TclResetShadowedCmdRefs(interp, newCmdPtr) if (trailPtr != trailStorage) { ckfree((char *) trailPtr); } -#undef NUM_TRAIL_ELEMS } /* -- cgit v0.12