Manifest of check-in
[2eb1879aac]
- * generic/tclCompExpr.c: Call TclCompileSyntaxError() when
expression syntax errors are found when compiling expressions. With
this in place, convert TclCompileExpr to return void, since there's no
longer any need to report TCL_ERROR.
* generic/tclCompile.c: Update callers.
* generic/tclExecute.c:
* generic/tclCompCmds.c: New routine TclCompileSyntaxError()
* generic/tclCompile.h: to directly compile bytecodes that report a
* generic/tclCompile.c: syntax error, rather than (ab)use a call to
TclCompileReturnCmd. Also, undo the most recent commit that papered
over some issues with that (ab)use. New routine produces a new
opcode INST_SYNTAX, which is a minor variation of INST_RETURN_IMM.
Also a bit of constification.
by
dgp on
2007-08-27 19:56:50.
B 8b6639f41a0f78b4a71a9e406fbf456500e26119
C \s\s\s\s\s\s\s\s*\sgeneric/tclCompExpr.c:\s\s\s\s\s\s\s\sCall\sTclCompileSyntaxError()\swhen\n\s\s\s\s\s\s\s\sexpression\ssyntax\serrors\sare\sfound\swhen\scompiling\sexpressions.\s\sWith\n\s\s\s\s\s\s\s\sthis\sin\splace,\sconvert\sTclCompileExpr\sto\sreturn\svoid,\ssince\sthere's\sno\n\s\s\s\s\s\s\s\slonger\sany\sneed\sto\sreport\sTCL_ERROR.\n\s\s\s\s\s\s\s\s*\sgeneric/tclCompile.c:\sUpdate\scallers.\n\s\s\s\s\s\s\s\s*\sgeneric/tclExecute.c:\n\n\s\s\s\s\s\s\s\s*\sgeneric/tclCompCmds.c:\s\s\s\s\s\s\s\sNew\sroutine\sTclCompileSyntaxError()\n\s\s\s\s\s\s\s\s*\sgeneric/tclCompile.h:\sto\sdirectly\scompile\sbytecodes\sthat\sreport\sa\n\s\s\s\s\s\s\s\s*\sgeneric/tclCompile.c:\ssyntax\serror,\srather\sthan\s(ab)use\sa\scall\sto\n\s\s\s\s\s\s\s\sTclCompileReturnCmd.\s\sAlso,\sundo\sthe\smost\srecent\scommit\sthat\spapered\n\s\s\s\s\s\s\s\sover\ssome\sissues\swith\sthat\s(ab)use.\s\sNew\sroutine\sproduces\sa\snew\n\s\s\s\s\s\s\s\sopcode\sINST_SYNTAX,\swhich\sis\sa\sminor\svariation\sof\sINST_RETURN_IMM.\n\s\s\s\s\s\s\s\sAlso\sa\sbit\sof\sconstification.\n
D 2007-08-27T19:56:50
F ChangeLog 0ac3700a735f9feb76c93257e90d6c4a6600bc8a
F generic/tclCompCmds.c c48bd3ccb2fb6007556197655fa16b812d6238ef
F generic/tclCompExpr.c d1b0f9b42b3012f1fe173308611f38a9c3762dde
F generic/tclCompile.c 92fcf6eb240824916f63f4d677fd41e77218cb6a
F generic/tclCompile.h a4778b805e82c875216c3d18eabf2712bda5215b
F generic/tclExecute.c db0b0aee08aed376c5fd920a4442bb662dd4bd34
F generic/tclInt.h ea193a80f4caa6b6c537c2afa4437e6d97ce9ad5
F library/clock.tcl 8cd1d06db3682de5d5bb8ff1a422ee5f5d931ae4
F library/init.tcl 5261ac7de0fe4e2794c7e494e0f3131ec26fb218
F tests/clock.test c20d7a2f6605abf9a960d7bf7bb9d8dad8960055
F tests/compExpr.test 343d4d1dd43ab2e2fe746e38d00b88473abc5afe
F tests/expr.test f73a8d7690140bea9194219efe1dd8ecc581a6ce
P 27a33626befeceaec39bb673b0098d1b6316c3ec
U dgp
Z b11fbdcac312b43d5d78ae9b409cb587