summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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]
* * doc/tm.n: Added underscore to the set of characters accepted inandreas_kupries2010-09-082-3/+9
| | | | | module names. This is true for quite some time in the code, this change catches up the documentation.
* Start producing HTML out for Thread package. Consequent bugfixes:dkf2010-09-033-30/+48
| | | | | | | | | * tools/tcltk-man2html.tcl (plus-pkgs): Improve the package documentation search pattern to support the doctoos-generated directory structure. * tools/tcltk-man2html-utils.tcl (output-name): Made this more resilient against misformatted NAME sections, induced by import of Thread package documentation into Tcl doc tree.
* * doc/glob.n: Fixed documentation ambiguity regarding the handlingandreas_kupries2010-09-022-3/+7
| | | | of -join.
* * library/safe.tcl (::safe::AliasGlob): Fixed another problem, theandreas_kupries2010-09-022-2/+8
| | | | | option -join does not stop option processing in the core builtin, so the emulation must not do that either.
* * library/safe.tcl (::safe::AliasGlob): Moved the commandandreas_kupries2010-09-022-2/+8
| | | | | extending the actual glob command with a -directory flag to when we actually have a proper untranslated path,
* * generic/tclExecute.c: [Bug 3057639]. Applied patch by Jeff toandreas_kupries2010-09-015-17/+148
| | | | | | | * generic/tclVar.c: make the behaviour of lappend in bytecompiled * tests/append.test: mode consistent with direct-eval and 'append' * tests/appendComp.test: generally. Added tests (append*-9.*) showing the difference.
* [Patch 2997642] many type casts needed when using Tcl_Pkg* API. Remaining ↵nijtmans2010-08-312-4/+5
| | | | part, doc.
* [Patch 2997642] many type casts needed when using Tcl_Pkg* API. Remaining part.nijtmans2010-08-319-24/+36
| | | | Typo in rules.vc
* * win/tcl.m4: Applied patch by Jeff fixing issues with theandreas_kupries2010-08-313-4/+14
| | | | | manifest handling on Win64. * win/configure: Regenerated.
* * generic/tclBasic.c: New implementation for [tailcall]:Miguel Sofer2010-08-308-180/+136
| | | | | | | | | * generic/tclCmdAH.c: it now schedules the command and returns * generic/tclCmdMZ.c: TCL_RETURN. This fixes all issues with * generic/tclExecute.c: [catch] and [try] - [Bug 3046594], * generic/tclInt.h: [Bug 3047235] and [Bug 3048771]. Thanks * generic/tclNamesp.c: dgp for exploring the dark corners. * tests/tailcall.test: More thorough testing is required.
* [Patch 2997642] many type casts needed when using Tcl_Pkg* API. Partly.nijtmans2010-08-302-3/+5
|
* [Patch 2997642] many type casts needed when using Tcl_Pkg* API. Partly.nijtmans2010-08-306-28/+32
|
* [Freq 2965056]: Windows build with -DUNICODEnijtmans2010-08-3010-29/+58
|
* * doc/dict.n: [Bug 3046999]: Corrected cross reference to arraydkf2010-08-292-25/+30
| | | | manpage to refer to (correct) existing subcommand.
* * unix/configure, unix/tcl.m4: SHLIB_LD_LIBS='${LIBS}' for OSF1-V*.hobbs2010-08-273-3/+9
| | | | | Add /usr/lib64 to set of auto-search dirs. [Bug 1230554] (SC_PATH_X): Correct syntax error when xincludes not found.
* * win/Makefile.in (VC_MANIFEST_EMBED_DLL VC_MANIFEST_EMBED_EXE):hobbs2010-08-275-3/+131
| | | | | | | * win/configure, win/configure.in, win/tcl.m4: SC_EMBED_MANIFEST macro and --enable-embedded-manifest configure arg added to support manifest embedding where we know the magic. Help prevents DLL hell with MSVC8+.
* [Patch 2994165]: Change signature of Tcl_FSGetNativePath and TclpDeleteFile ↵nijtmans2010-08-254-30/+12
| | | | | | follow-up: move stub entry back to original location.
* [Bug 3007895] Tcl_(Find|Create)HashEntry stub entries can never be called.nijtmans2010-08-244-14/+40
|
* * library/tzdata/Africa/Cairo:Kevin B Kenny2010-08-233-2/+8
| | | | * library/tzdata/Asia/Gaza: Olson's tzdata2010l.
* Remove many type casts which are no longernecessary as a result of [Patch ↵nijtmans2010-08-2216-70/+85
| | | | 3009403]: Signature of Tcl_GetHashKey, Tcl_(Create|Find)HashEntry
* * doc/linsert.n: [Bug 3045123]: Make description of what is actuallydkf2010-08-212-6/+21
| | | | happening more accurate.
* [Patch 3034251]: Backport ttkGenStubs.tcl features to genStubs.tcl, partly:nijtmans2010-08-217-230/+240
| | | | Use void (*reserved$i)(void) = 0 instead of void *reserved$i = NULL for unused stub entries, in case pointer-to-function and pointer-to-object are different sizes.
* Fix definition of Tcl_MethodTypenijtmans2010-08-202-5/+9
|
* * generic/tclTrace.c (TraceExecutionObjCmd, TraceCommandObjCmd)dkf2010-08-192-10/+17
| | | | | | (TraceVariableObjCmd): [Patch 3048354]: Use memcpy() instead of strcpy() to avoid buffer overflow; we have the correct length of data to copy anyway since we've just allocated the target buffer.