Skip to content
Tcl Source Code Artifact [9406bde55c]
Login

Artifact [9406bde55c]

Artifact 9406bde55c5c16b1217499821020f93c99452a50:

Manifest of check-in [9406bde55c] - * generic/tclInt.h: New macro TclGrowParseTokenArray() to * generic/tclCompCmds.c: simplify code that might need to grow * generic/tclCompExpr.c: an array of Tcl_Tokens in the parsePtr * generic/tclParse.c: field of a Tcl_Parse. Replaces the TclExpandTokenArray() routine via replacing: int needed = parsePtr->numTokens + growth; while (needed > parsePtr->tokensAvailable) { TclExpandTokenArray(parsePtr); } with: TclGrowParseTokenArray(parsePtr, growth); This revision merged over from dgp-refactor branch. by dgp on 2008-01-23 19:41:19.
B ae04371917276a9aced9480ea6e2bd2211be172a
C \s\s\s\s\s\s\s\s*\sgeneric/tclInt.h:\s\s\s\s\s\s\s\s\s\s\s\s\sNew\smacro\sTclGrowParseTokenArray()\sto\n\s\s\s\s\s\s\s\s*\sgeneric/tclCompCmds.c:\s\s\s\s\s\s\s\ssimplify\scode\sthat\smight\sneed\sto\sgrow\n\s\s\s\s\s\s\s\s*\sgeneric/tclCompExpr.c:\s\s\s\s\s\s\s\san\sarray\sof\sTcl_Tokens\sin\sthe\sparsePtr\n\s\s\s\s\s\s\s\s*\sgeneric/tclParse.c:\s\s\s\s\s\s\s\s\s\s\sfield\sof\sa\sTcl_Parse.\s\sReplaces\sthe\n\s\s\s\s\s\s\s\sTclExpandTokenArray()\sroutine\svia\sreplacing:\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sint\sneeded\s=\sparsePtr->numTokens\s+\sgrowth;\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\swhile\s(needed\s>\sparsePtr->tokensAvailable)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sTclExpandTokenArray(parsePtr);\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\swith:\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sTclGrowParseTokenArray(parsePtr,\sgrowth);\n\s\s\s\s\s\s\s\sThis\srevision\smerged\sover\sfrom\sdgp-refactor\sbranch.\n
D 2008-01-23T19:41:19
F ChangeLog 2bca53635c509d29ca69ed78cc355a0d2386d52c
F generic/tclCompCmds.c 52c987312797b64811158da62207c8f7b1f2624f
F generic/tclCompExpr.c 6db633cc373dd96ddcc17ace4a43626fa1177d4a
F generic/tclInt.h ea2683ea64eaa3218e9bfd0190d801586e791e3e
F generic/tclParse.c 9c6d19fe6927fedb62a7d28835cdc156dcee34dc
P ae04371917276a9aced9480ea6e2bd2211be172a
U dgp
Z 5abe43bb6d3348efd58a81c826cae698