summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclUtil.c (TclReToGlob): add extra check for multiplehobbs2010-12-031-2/+14
| | | | | inner *s that leads to poor recursive glob matching, defer to original RE instead. tclbench RE var backtrack.
* silence gcc warning when using -Wwrite-stringsnijtmans2010-12-032-4/+9
| | | | | | silence gcc warning for non-IEEE platforms [Patch #3116490] cross-compile Tcl mingw32 on unix. This makes it possible to cross-compile Tcl/Tk for Windows (either 32-bit or 64-bit) out-of-the-box on UNIX, using mingw-w64 build tools.
* * generic/tclStrToD.c (SetPrecisionLimits, TclDoubleDigits):Kevin B Kenny2010-12-011-4/+11
| | | | | | | | Added meaningless initialization of 'i', 'ilim' and 'ilim1' to silence warnings from the C compiler about possible use of uninitialized variables, Added a panic to the 'switch' that assigns them, to assert that the 'default' case is impossible. [Bug 3124675]
* Allow Tcl_Panic() to enter the debugger on win32nijtmans2010-12-012-12/+9
|
* fix gcc 64-bit warnings: cast from pointer to integer of different sizenijtmans2010-12-015-22/+22
| | | | fix gcc(-4.5.2) warning: 'static' is not at beginning of declaration
* * generic/tclInt.decls, generic/tclInt.h, generic/tclIntDecls.h:hobbs2010-11-305-25/+101
| | | | | | | * generic/tclStubInit.c: TclFormatInt restored at slot 24 * generic/tclUtil.c (TclFormatInt): restore TclFormatInt func from 2005-07-05 macro-ization. Benchmarks indicate it is faster, as a key int->string routine (e.g. int-indexed arrays).
* Patch by Miguel, providing a [::tcl::unsupported::inject coroname command ↵ferrieux2010-11-291-2/+51
| | | | args], which prepends ("injects") arbitrary code to a suspented coro's future resumption. Neat for debugging complex coros without heavy instrumentation.
* added missing casts that MSVC complained about and deleted unused variableKevin B Kenny2010-11-292-7/+6
|
* 2010-11-29 Kevin B. Kenny <kennykb@acm.org>Kevin B Kenny2010-11-289-404/+2711
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.decls: * generic/tclInt.h: * generic/tclStrToD.c: * generic/tclTest.c: * generic/tclTomMath.decls: * generic/tclUtil.c: * tests/util.test: * unix/Makefile.in: * win/Makefile.in: * win/makefile.vc: Rewrite of Tcl_PrintDouble and TclDoubleDigits that (a) fixes a severe performance problem with floating point shimmering reported by Karl Lehenbauer, (b) allows TclDoubleDigits to generate the digit strings for 'e' and 'f' format, so that it can be used for tcl_precision != 0 (and possibly later for [format]), (c) fixes [Bug 3120139] by making TclPrintDouble inherently locale-independent, (d) adds test cases to util.test for correct rounding in difficult cases of TclDoubleDigits where fixed- precision results are requested. (e) adds test cases to util.test for the controversial aspects of [Bug 3105247]. As a side effect, two more modules from libtommath (bn_mp_set_int.c and bn_mp_init_set_int.c) are brought into the build, since the new code uses them.
* Tcl_Panic already writes a newline at the end, so the caller doesn't have to ↵nijtmans2010-11-191-2/+2
| | | | do that
* * generic/tclNamesp.c: fix leak due to bad looping construct,Miguel Sofer2010-11-181-3/+5
| | | | | [Bug 3111059] (Correct fix this time around)
* * generic/tclNamesp.c: fix leak due to bad looping construct,Miguel Sofer2010-11-181-5/+3
| | | | [Bug 3111059]
* * doc/interp.n: [3081184] TIP #378.andreas_kupries2010-11-154-17/+137
| | | | | | | | | | * doc/tclvars.n: Performance fix for TIP #280. * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclInterp.c: * tests/info.test: * tests/interp.test:
* reverted previous commit: it has effect on the Windows consolenijtmans2010-11-151-23/+33
|
* Eliminate use of the function Tcl_WinTCharToUtf in generic codenijtmans2010-11-151-33/+23
|
* Fix [Bug 3105999]; deallocate temporary structure.dkf2010-11-091-4/+11
|
* Add missing 'objs' verb in error message.ferrieux2010-11-081-2/+4
|
* fix TCL_ASCII_MAIN usage, as the name suggestsnijtmans2010-11-051-5/+7
|
* * generic/tclMain.c: Added missing conditional on _WIN32 around codeKevin B Kenny2010-11-041-2/+2
| | | | | that messes around with the definition of _UNICODE, to correct a badly broken Unix build from Jan's last commit.
* [FRQ 491789]: "setargv() doesn't support a unicode cmdline" implemented for ↵nijtmans2010-11-042-11/+33
| | | | Tcl on MSVC++
* Correct typo and mistaken comment.dgp2010-11-041-2/+2
|
* * generic/tclCmdMZ.c (TryPostBody): Ensure that errors when settingdkf2010-11-031-1/+3
| | | | | * tests/error.test (error-19.1[12]): message/opt capture variables get reflected properly to the caller.
* * generic/tclCompCmds.c (TclCompileCatchCmd):Kevin B Kenny2010-11-031-67/+104
| | | | | | | | | | * tests/compile.test (compile-3,6): Reworked the compilation of the [catch] command so as to avoid placing any code that might throw an exception (specifically, any initial substitutions or any stores to result or options variables) between the BEGIN_CATCH and END_CATCH but outside the exception range. Added a test case that panics on a stack smash if the change is not made. [Bug #3098302]
* Stop small [afters] from wasting CPU [Bug 2905784] while keeping accuracy.ferrieux2010-10-291-5/+21
|
* * Changelog.2008: Split off from Changelog.rmax2010-10-261-9/+14
| | | | | * generic/tclIOSock.c (TclCreateSocketAddress): The interp != NULL check is needed for ::tcl::unsupported::socketAF as well.
* [Patch 2995655] Report inner contexts in [info errorstack]ferrieux2010-10-207-25/+335
|
* * generic/tclCompCmds.c (TclCompileDictForCmd): Update the compilationdkf2010-10-203-27/+37
| | | | | | | | * generic/tclCompile.c (tclInstructionTable): of [dict for] so that * generic/tclExecute.c (TEBCresume): it no longer makes any use of INST_DICT_DONE now that's not needed, and make it clearer in the implementation of the instruction that it's just a deprecated form of unset operation. Followup to my commit of 2010-10-16.
* * generic/tclZlib.c (Tcl_ZlibStreamGet): [Bug 3081008]: Ensure thatdkf2010-10-192-6/+25
| | | | | | | | | | | | | | | when a bytearray gets its internals entangled with zlib for more than a passing moment, that bytearray will never be shimmered away. This increases the amount of copying but is simple to get right, which is a reasonable trade-off. * generic/tclStringObj.c (Tcl_AppendObjToObj): Added some special cases so that most of the time when you build up a bytearray by appending, it actually ends up being a bytearray rather than shimmering back and forth to string. * tests/http11.test (check_crc): Use a simpler way to express the functionality of this procedure.
* * generic/tclZlib.c: Purge code that wrote to the object returned bydkf2010-10-191-50/+55
| | | | Tcl_GetObjResult, as we don't want to do that anti-pattern no more.
* [Bug 3085863]: tclUniData 9 years oldnijtmans2010-10-181-1/+1
| | | | Added testcases for Unicode 6.0
* * generic/tclExecute.c (ReleaseDictIterator): Factored out the releasedkf2010-10-161-27/+53
| | | | | of the bytecode-level dictionary iterator information so that the side-conditions on instruction issuing are simpler.
* [Bug 3085863] tclUniData 9 years old: Updated Unicode tables to latest ↵nijtmans2010-10-152-972/+1001
| | | | | | UnicodeData.txt, corresponding with Unicode 6.0 (except for out-of-range chars > 0xFFFF)
* remove outdated commentdgp2010-10-131-7/+1
|
* * generic/tclCompile.c: Alternative fix for [Bugs 467523,983660] wheredgp2010-10-132-7/+7
| | | | * generic/tclExecute.c: sharing of empty scripts is allowed again.
* Generate proper const qualifiers for tclUniData.cnijtmans2010-10-121-4/+4
|
* Spacing and comments: let uniClass.tcl generation match better the current ↵nijtmans2010-10-121-4/+6
| | | | (hand-modified) regc_locale.c
* * generic/tclExecute.c: fix overallocation of exec stack in TEBCMiguel Sofer2010-10-091-4/+6
| | | | (mixing numwords and numbytes)
* On Windows, use gai_strerrorAnijtmans2010-10-071-1/+7
|
* * generic/tclCompile.c: Prevent writing to the intrep fields of adgp2010-10-061-3/+3
| | | | * tests/subst.test: freed Tcl_Obj. [Bug 3081065]
* * generic/tclExecute.c (TEBCresume): [Bug 3079830]: Added invalidationdkf2010-10-021-1/+24
| | | | of string representations of dictionaries in some cases.
* Add function-header comments.dkf2010-10-021-13/+38
|
* * generic/tclExecute.c (EvalStatsCmd): change 'evalstats' tohobbs2010-10-024-113/+144
| | | | | | | | | return data to interp by default, or if given an arg, use that as filename to output to (accepts 'stdout' and 'stderr'). Fix output to print used inst count data. * generic/tclCkalloc.c: change TclDumpMemoryInfo sig to allow * generic/tclInt.decls: objPtr as well as FILE* as output. * generic/tclIntDecls.h:
* * generic/tclBasic.c, generic/tclClock.c, generic/tclEncoding.c,dkf2010-10-0111-64/+73
| | | | | | | | * generic/tclEnv.c, generic/tclLoad.c, generic/tclNamesp.c, * generic/tclObj.c, generic/tclRegexp.c, generic/tclResolve.c, * generic/tclResult.c, generic/tclUtil.c, macosx/tclMacOSXFCmd.c: More purging of strcpy() from locations where we already know the length of the data being copied.
* tclMain.c: make compilable with -DUNICODE as wellnijtmans2010-09-291-24/+72
|
* reverting faulty commitMiguel Sofer2010-09-281-12/+31
|
* * generic/tclExecute.c: remove TEBCreturn() callback, the job canMiguel Sofer2010-09-281-31/+12
| | | | be accomplished by TEBCresume()
* * doc/socket.n: Document the changes to the [socket] and rmax2010-09-282-2/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | [fconfiguyre] commands. * generic/tclInt.h: Introduce TclCreateSocketAddress() as a * generic/tclIOSock.c: replacement for the platform-dependent * unix/tclUnixSock.c: TclpCreateSocketAddress() functions. * unix/tclUnixChan.c: Extend the [socket] and [fconfigure] * unix/tclUnixPort.h: commands to behave as proposed in * win/tclWinSock.c: TIP #162. * win/tclWinPort.h: * compat/fake-rfc2553.c: A compat implementation of the APIs * compat/fake-rfc2553.h: defined in RFC-2553 (getaddrinfo() and friends) on top of the existing gethostbyname() etc. * unix/configure.in: Test whether the fake-implementation is * unix/tcl.m4: needed. * unix/Makefile.in: Add a compile target for fake-rfc2553. * win/configure.in: Allow cross-compilation by default * tests/socket.test: Improve the test suite to make more use of * tests/remote.tcl: randomized ports to reduce interference with tests running in parallel or other services on the machine.
* fix error with --enable-symbols=compileMiguel Sofer2010-09-271-9/+9
|
* * generic/tclBasic.c: [Patch 3072080] (minus the itclMiguel Sofer2010-09-2712-772/+483
| | | | | | | | | | | | | | * generic/tclCmdIL.c: update): a saner NRE. * generic/tclCompExpr.c: * generic/tclCompile.c: This makes TclNRExecuteByteCode * generic/tclCompile.h: (ex TEBC) to be a normal NRE * generic/tclExecute.c: citizen: it loses its special status. * generic/tclInt.decls: The logic flow within the BC engine is * generic/tclInt.h: simplified considerably. * generic/tclIntDecls.h: * generic/tclObj.c: * generic/tclProc.c: * generic/tclTest.c:
* * generic/tclVar.c: use the macro HasLocalVars everywhereMiguel Sofer2010-09-271-4/+3
|