Skip to content

Commit ea39f6c

Browse files
author
dgp
committed
merge 8.7
2 parents f89809c + 69c0f5a commit ea39f6c

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

generic/tclCompCmds.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3496,11 +3496,12 @@ TclPushVarName(
34963496
{
34973497
const char *p;
34983498
const char *last, *name, *elName;
3499-
size_t n;
3499+
Tcl_Size n;
35003500
Tcl_Token *elemTokenPtr = NULL;
35013501
size_t nameLen, elNameLen;
35023502
int simpleVarName, localIndex;
3503-
int elemTokenCount = 0, allocedTokens = 0, removedParen = 0;
3503+
Tcl_Size elemTokenCount = 0, removedParen = 0;
3504+
int allocedTokens = 0;
35043505

35053506
/*
35063507
* Decide if we can use a frame slot for the var/array name or if we need

generic/tclCompile.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2420,22 +2420,21 @@ TclCompileTokens(
24202420
Tcl_Interp *interp, /* Used for error and status reporting. */
24212421
Tcl_Token *tokenPtr, /* Pointer to first in an array of tokens to
24222422
* compile. */
2423-
size_t count1, /* Number of tokens to consider at tokenPtr.
2423+
Tcl_Size count, /* Number of tokens to consider at tokenPtr.
24242424
* Must be at least 1. */
24252425
CompileEnv *envPtr) /* Holds the resulting instructions. */
24262426
{
24272427
Tcl_DString textBuffer; /* Holds concatenated chars from adjacent
24282428
* TCL_TOKEN_TEXT, TCL_TOKEN_BS tokens. */
24292429
char buffer[4] = "";
24302430
Tcl_Size i, numObjsToConcat, adjust;
2431-
size_t length;
2431+
int length;
24322432
unsigned char *entryCodeNext = envPtr->codeNext;
24332433
#define NUM_STATIC_POS 20
24342434
int isLiteral;
24352435
Tcl_Size maxNumCL, numCL;
24362436
Tcl_Size *clPosition = NULL;
24372437
int depth = TclGetStackDepth(envPtr);
2438-
int count = count1;
24392438

24402439
/*
24412440
* If this is actually a literal, handle continuation lines by
@@ -2639,11 +2638,10 @@ TclCompileCmdWord(
26392638
Tcl_Interp *interp, /* Used for error and status reporting. */
26402639
Tcl_Token *tokenPtr, /* Pointer to first in an array of tokens for
26412640
* a command word to compile inline. */
2642-
size_t count1, /* Number of tokens to consider at tokenPtr.
2641+
Tcl_Size count, /* Number of tokens to consider at tokenPtr.
26432642
* Must be at least 1. */
26442643
CompileEnv *envPtr) /* Holds the resulting instructions. */
26452644
{
2646-
int count = count1;
26472645

26482646
if ((count == 1) && (tokenPtr->type == TCL_TOKEN_TEXT)) {
26492647
/*

generic/tclCompile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,7 +1097,7 @@ MODULE_SCOPE int TclAttemptCompileProc(Tcl_Interp *interp,
10971097
MODULE_SCOPE void TclCleanupStackForBreakContinue(CompileEnv *envPtr,
10981098
ExceptionAux *auxPtr);
10991099
MODULE_SCOPE void TclCompileCmdWord(Tcl_Interp *interp,
1100-
Tcl_Token *tokenPtr, size_t count,
1100+
Tcl_Token *tokenPtr, Tcl_Size count,
11011101
CompileEnv *envPtr);
11021102
MODULE_SCOPE void TclCompileExpr(Tcl_Interp *interp, const char *script,
11031103
Tcl_Size numBytes, CompileEnv *envPtr, int optimize);
@@ -1113,7 +1113,7 @@ MODULE_SCOPE void TclCompileScript(Tcl_Interp *interp,
11131113
MODULE_SCOPE void TclCompileSyntaxError(Tcl_Interp *interp,
11141114
CompileEnv *envPtr);
11151115
MODULE_SCOPE void TclCompileTokens(Tcl_Interp *interp,
1116-
Tcl_Token *tokenPtr, size_t count,
1116+
Tcl_Token *tokenPtr, Tcl_Size count,
11171117
CompileEnv *envPtr);
11181118
MODULE_SCOPE void TclCompileVarSubst(Tcl_Interp *interp,
11191119
Tcl_Token *tokenPtr, CompileEnv *envPtr);

0 commit comments

Comments
 (0)