summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * tclAssembly.c:Kevin B Kenny2010-12-163-90/+318
| | | | | | | * 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.
* mergeKevin B Kenny2010-12-1146-2797/+4258
|
* mergeKevin B Kenny2010-12-0157-3916/+8723
|
* mergeKevin B Kenny2010-11-038-79/+155
|
* mergeKevin B Kenny2010-10-302-5/+26
|
* mergeKevin B Kenny2010-10-287-3828/+3886
|
* * generic/tclAssembly.c:Kevin B Kenny2010-10-283-25/+544
| | | | * tests/assembly.test (assemble-31.*): Added jump tables.
* * tclAssembly.c:Kevin B Kenny2010-10-243-235/+384
| | | | | | | * 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.
* removed useless separation between tclAssembly.h and tclAssembly.cKevin B Kenny2010-10-234-209/+245
|
* mergeKevin B Kenny2010-10-2311-65/+412
|
* mergeKevin B Kenny2010-10-2030-1798/+1633
|
* mergeKevin B Kenny2010-10-096-20/+73
|
* Added catches. Still needs a lot of testing.Kevin B Kenny2010-10-064-355/+1366
|
* nop and regexpKevin B Kenny2010-10-024-1/+87
|
* added missing tests: nsupvar, variable, upvarKevin B Kenny2010-10-023-6/+45
|
* * generic/tclAssembly.c:Kevin B Kenny2010-10-027-133/+504
| | | | | | | | * 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.
* mergeKevin B Kenny2010-10-025-113/+154
|
* mergeKevin B Kenny2010-10-0113-67/+87
|
* Added listIn, listNotIn, and dictGet.Kevin B Kenny2010-10-014-12/+118
|
* MergeKevin B Kenny2010-09-304-4898/+13854
|
* * tests/assemble.test: Added tryCvtToNumeric and several more listKevin B Kenny2010-09-301-0/+1
| | | | | * generic/tclAssemble.c: operations. * generic/tclAssemble.h:
* * tests/assemble.test: Added tryCvtToNumeric and several more listKevin B Kenny2010-09-304-78/+514
| | | | * generic/tclAssemble.c: operations.
* * tests/assemble.test: Completed conversion of tests to aKevin B Kenny2010-09-293-483/+427
| | | | | | * 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.
* mergeKevin B Kenny2010-09-2818-14117/+6440
|
* * tests/assemble.test: Added more "white box" tests.Kevin B Kenny2010-09-284-137/+447
| | | | | | | | | | | | * 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.
* Merged from HEAD.Kevin B Kenny2010-09-2716-827/+527
| | | | Also replaced a funky NRCallTEBC with the new call TclNRExecuteByteCode.
* * tests/assemble.test: Added more "white box" tests.Kevin B Kenny2010-09-273-30/+510
| | | | | | | | * 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.
* * tests/assemble.test: Added many new tests moving toward a moreKevin B Kenny2010-09-263-99/+1128
| | | | | | | | | | 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.
* added more tests; fixed a bug in initialization of BasicBlock objKevin B Kenny2010-09-252-6/+113
|
* * tclAssembly.c: Massive refactoring of the assemblerKevin B Kenny2010-09-2518-1292/+2259
| | | | | | | | | * 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.
* merge changes from HEADKevin B Kenny2010-09-2212-64/+72
|
* initial commit of Ozgur Dogan Ugurlu's (SF user:dogeen) assembler for the ↵Kevin B Kenny2010-09-2110-6/+2247
| | | | Tcl bytecode language
* Eliminate tclWinProcs->useWide everywhere, since the value is always "1" on ↵dogeen_assembler_splitnijtmans2010-09-204-189/+60
| | | | platforms >win95
* * doc/file.n (file readlink): [Bug 3070580]: Typofix.dkf2010-09-182-7/+11
|
* Oops, didn't mean to check in this file.nijtmans2010-09-181-15/+7
|
* [Bug 3069278]: breakage on head Windows triggerednijtmans2010-09-183-12/+32
| | | | by install-tzdata. Temporary don't compile this with -DUNICODE, while investigating this bug.
* * win/tclWinFile.c: remove define of FINDEX_INFO_LEVELS as allhobbs2010-09-162-23/+4
| | | | supported versions of compilers should now have it.
* * unix/Makefile.in: do not pass current build env vars when usinghobbs2010-09-162-10/+11
| | | | NATIVE_TCLSH in targets.
* Make Tcl_FindExecutable() work in UNICODE compiles (windows-only) as well as ↵nijtmans2010-09-164-8/+18
| | | | | | ASCII. Needed for [FRQ 491789]: setargv() doesn't support a unicode cmdline
* * generic/tclBinary.c (TclAppendBytesToByteArray): [Bug 3067036]: Makedkf2010-09-153-18/+60
| | | | | 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.
* * unix/Makefile.in: Revise `make dist` target to tolerate thedgp2010-09-152-2/+8
| | | | case of zero bundled packages.
* update file generated by 'make dist'dgp2010-09-151-3/+6
|
* [Patch 3034251] backport ttkGenStubs.tclnijtmans2010-09-156-989/+1047
| | | | | | | | 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.
* Allow all Win2000+ API entries in Tclnijtmans2010-09-143-110/+75
| | | | Eliminate dynamical loading of advapi23 and kernal32 symbols.
* Add scspec feature from ttkGenStubs.tclnijtmans2010-09-132-2/+23
| | | | (no change in output for *Decls.h files)
* Various clean-ups, converting from tclWinProc->xxxProc directly to Xxxnijtmans2010-09-137-33/+40
| | | | (no change in functionality)
* Partly revert yesterday's change, to make it work on VC++ 6.0 again.nijtmans2010-09-102-22/+79
|
* * doc/regsub.n: [Bug 3063568]: Fix for gotcha in example due to Tcl'sdkf2010-09-102-16/+24
| | | | | special handling of backslash-newline. Makes example slightly less pure, but more useful.
* mingw should always link with -ladvapi32nijtmans2010-09-098-292/+93
| | | | | | | | | 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/tclWinChan.c: #ifdef protections to permit builds withdgp2010-09-083-25/+40
| | | | | * win/tclWinFCmd.c: mingw on amd64 systems. Thanks to "mescalinum" for reporting and testing. [Bug 3059922]