| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
* assemble.test: Reworked beginCatch/endCatch handling to
enforce the more severe (but more correct) restrictions on catch
handling that appeared in the discussion of [Bug 3098302] and in
tcl-core traffic beginning about 2010-10-29.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* tests/assembly.test (assemble-31.*): Added jump tables.
|
|
|
|
|
|
|
| |
* assembly.test (assemble-17.15): Reworked branch handling so that
forward branches can use jump1 (jumpTrue1, jumpFalse1). Added test
cases that the forward branches will expand to jump4, jumpTrue4,
jumpFalse4 when needed.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
* generic/tclAssembly.h:
* tests/assemble.test: Added dictAppend, dictIncrImm, dictLappend,
dictSet, dictUnset, nsupvar, upvar, and variable. (Still need tests
for the last three.)
Merged changes from HEAD.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* generic/tclAssemble.c: operations.
* generic/tclAssemble.h:
|
|
|
|
| |
* generic/tclAssemble.c: operations.
|
|
|
|
|
|
| |
* generic/tclAssemble.c: "white box" structure that follows the
C code. Added missing safety checks on the operands of 'over' and
'reverse' so that negative operand counts don't smash the stack.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclAssembly.c: Added the error checking and reporting
for undefined labels. Revised code so that no pointers into the
bytecode sequence are held (because the sequence can move!),
that no Tcl_HashEntry pointers are held (because the hash table
doesn't guarantee their stability!) and to eliminate the BBHash
table, which is merely additional information indexed by jump
labels and can just as easily be held in the 'label' structure.
Renamed shared structures to CamelCase, and renamed 'label' to
JumpLabel because other types of labels may eventually be possible.
|
|
|
|
| |
Also replaced a funky NRCallTEBC with the new call TclNRExecuteByteCode.
|
|
|
|
|
|
|
|
| |
* generic/tclAssembly.c: Fixed bugs exposed by the new tests.
(a) [eval] and [expr] had incorrect stack balance computed if
the arg was not a simple word. (b) [concat] accepted a negative
operand count. (c) [invoke] accepted a zero or negative operand
count. (d) more misspelt error messages.
|
|
|
|
|
|
|
|
|
|
| |
comprehensive test suite for the assembler.
* generic/tclAssembly.c: Fixed bugs exposed by the new tests:
(a) [bitnot] and [not] had incorrect operand counts. (b)
INST_CONCAT cannot concatenate zero objects. (c) misspelt error
messages. (d) the "assembly code" internal representation lacked
a duplicator, which caused double-frees of the Bytecode object
if assembly code ever was duplicated.
|
| |
|
|
|
|
|
|
|
|
|
| |
* tclAssembly.h: to use a Tcl-like syntax (and use
* tests/assemble.test: Tcl_ParseCommand to parse it). The
* tests/assemble1.bench: refactoring also ensures that
Tcl_Tokens in the assembler have string ranges inside the source
code, which allows for [eval] and [expr] assembler directives
that simply call TclCompileScript and TclCompileExpr recursively.
|
| |
|
|
|
|
| |
Tcl bytecode language
|
|
|
|
| |
platforms >win95
|
| |
|
| |
|
|
|
|
| |
by install-tzdata. Temporary don't compile this with -DUNICODE, while investigating this bug.
|
|
|
|
| |
supported versions of compilers should now have it.
|
|
|
|
| |
NATIVE_TCLSH in targets.
|
|
|
|
|
|
| |
ASCII.
Needed for [FRQ 491789]: setargv() doesn't support a unicode cmdline
|
|
|
|
|
| |
sure we never try to double zero repeatedly to get a buffer size. Also
added a check for sanity on the size of buffer being appended.
|
|
|
|
| |
case of zero bundled packages.
|
| |
|
|
|
|
|
|
|
|
| |
features to genStubs.tcl. Make the "generic"
argument in the *.decls files optional
(no change to any tcl*Decls.h files)
This allows genStubs.tcl to generate the ttk stub files as well,
while keeping full compatibility with existing *.decls files.
|
|
|
|
| |
Eliminate dynamical loading of advapi23 and kernal32 symbols.
|
|
|
|
| |
(no change in output for *Decls.h files)
|
|
|
|
| |
(no change in functionality)
|
| |
|
|
|
|
|
| |
special handling of backslash-newline. Makes example slightly less
pure, but more useful.
|
|
|
|
|
|
|
|
|
| |
Remove ascii variant of tkWinPocs table,
it is no longer necessary. Fix CreateProcess
signature and remove unused GetModuleFileName and lstrcpy
mingw/cygwin fixes: <tchar.h> should always
be included, and fix conflict in various macro values: Always force
the same values as in VC++.
|
|
|
|
|
| |
* win/tclWinFCmd.c: mingw on amd64 systems. Thanks to "mescalinum"
for reporting and testing. [Bug 3059922]
|