summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * library/init.tcl: Use "ni" and "in" operators.dgp2005-04-252-7/+11
|
* fix commentsMiguel Sofer2005-04-251-2/+5
|
* * generic/tclExecute.c: fix for [Bug 1189274].Miguel Sofer2005-04-252-2/+6
|
* silence compiler warningsdgp2005-04-253-5/+10
|
* typodgp2005-04-221-2/+2
|
* * tests/string.test: Test string-23.0 for Bug 1187123.dgp2005-04-222-1/+9
|
* The 2005-04-21 changes to Tcl_GetBooleanFromObj were done to bringdgp2005-04-2210-102/+103
| | | | | | | | | | | | | | | | | | | | | | | | | it into agreement with its docs. Further investigation reveals it was the docs that were incorrect. * doc/BoolObj.3: Corrections to the documentation of Tcl_GetBooleanFromObj to bring it into agreement with what this public interface has always done, including noting the difference in function between Tcl_GetBooleanFromObj and Tcl_GetBoolean. * generic/tclGet.c: Revised Tcl_GetBoolean to no longer be a wrapper around Tcl_GetBooleanFromObj (different function!). * generic/tclObj.c: Removed TclGetTruthValueFromObj routine that was added yesterday. Revisions so that only Tcl_GetBoolean-approved values get the "boolean" Tcl_ObjType. This retains the fix for [Bug 1187123]. * generic/tclInt.h: Revert most recent change. * generic/tclBasic.c: * generic/tclCompCmds.c: * generic/tclDictObj.c: * generic/tclExecute.c: * tests/obj.test:
* * generic/tclLiteral.c: Disabled the code that forces some literalsdgp2005-04-212-1/+8
| | | | | | into the "int" Tcl_ObjType during registration. We can re-enable it if this change causes trouble, but it seems more sensible to let Tcl's "on-demand" shimmering rule, and not try to pre-guess things.
* * generic/tclDictObj.c: Updated callers to call new routine.dgp2005-04-212-2/+3
|
* * generic/tclBasic.c: Updated callers to call new routine.dgp2005-04-213-25/+8
| | | | * generic/tclCompCmds.c: Updated callers to call new routine.
* stifle compiler warningdgp2005-04-211-9/+11
|
* * generic/tclGet.c: Radical code simplification. Converteddgp2005-04-216-240/+215
| | | | | | | | | | | | | | | | | | Tcl_GetFoo() routines into wrappers around Tcl_GetFooFromObj(). Reduces code duplication, and the resulting potential for inconsistency. * generic/tclObj.c: Several changes: - Fixed Tcl_GetBooleanFromObj to agree with its documentation and with Tcl_GetBoolean, accepting only "0" and "1" and not other numeric strings. [Bug 1187123] - Added new private routine TclGetTruthValueFromObj to perform the more permissive conversion of numeric values to boolean that is needed by the [expr] machinery. * generic/tclInt.h (TclGetTruthValueFromObj): New routine. * generic/tclExecute.c: Updated callers to call new routine. * tests/obj.test: Corrected bad tests that actually expected values like "47" and "0xac" to be accepted as booleans.
* Tcl_GetDoubleFromObj now avoids shimmering away a "wideInt" intrep.dgp2005-04-212-1/+5
|
* * generic/tclObj.c: Re-ordered error detection code so all valuesdgp2005-04-212-54/+47
| | | | | | | | | with trailing garbage receive a "not an integer" message instead of an "integer too large" message. Removed inactive code meant to deal with strtoul* routines that fail to parse leading signs. All of them do, and if any are detected that do not, the correct fix is replacement with compat/strtoul*.c, not a lot of special care by the callers.
* * doc/GetInt.3: Convert argument "string" to "str" to agree with code.dgp2005-04-213-178/+80
| | | | | | | Also clarified a few details on int and double formats. * generic/tclGet.c: Radical code simplification. Converted most Tcl_GetFoo() routines into wrappers around Tcl_GetFooFromObj(). Reduces code duplication, and the resulting potential for inconsistency.
* * generic/tclGet.c (Tcl_GetInt): Corrected error that did notdgp2005-04-203-38/+28
| | | | | * generic/tclObj.c (Tcl_GetIntFromObj): permit 0x80000000 to be recognized as an integer on TCL_WIDE_INT_IS_LONG systems [Bug 1090869].
* silenced a compiler warningKevin B Kenny2005-04-202-2/+7
|
* typodgp2005-04-191-2/+2
|
* * generic/tclBasic.c: Added unsupported commanddgp2005-04-196-108/+105
| | | | | | | | * generic/tclCmdAH.c: [::tcl::unsupported::EncodingDirs] to permit * generic/tclInt.h: query/set of the encoding search path at * generic/tclInterp.c: the script level. Updated init.tcl to make * library/init.tcl: use of the new command. Also updated several coding practices in init.tcl ("eq" for [string equal], etc.)
* fixed Bug 1185933Kevin B Kenny2005-04-193-23/+63
|
* * generic/Var.c (Tcl_ArrayObjCmd - ARRAY_NAMES): fix Tcl_Obj leakMiguel Sofer2005-04-162-2/+7
| | | | [Bug 1084111]
* See filevasiljevic2005-04-161-0/+32
|
* Force clenaup of the interp result in TclLoadFile(). Some implementationsvasiljevic2005-04-161-5/+12
| | | | | of TclpFindSymbol() will seed the interp result with error message when unable to find the requested symbol (this is not considered to be error).
* Renamed TclWinFreeAllocCache to TclpFreeAllocCache and fixed to recognizevasiljevic2005-04-161-20/+23
| | | | | when being called with NULL argument. This is a signal for it to clean up the tsd key associated with the threading allocator.
* Fixed TclpFreeAllocCache() to recognize when being called with NULLvasiljevic2005-04-161-7/+10
| | | | | argument. This is a signal for it to clean up the tsd key associated with the threading allocator.
* Modified TclFinalizeThreadAlloc() to explicitly call TclpFreeAllocCachevasiljevic2005-04-161-1/+3
| | | | | with the NULL-ptr as argument signalling cleanup of private tsd key used only by the threading allocator
* Added prototypes for TclpFreeAllocCache() and TclFreeAllocCache().vasiljevic2005-04-161-1/+3
|
* * tests/unixInit.test: Disabled obsolete tests and removed codedgp2005-04-154-103/+83
| | | | | * tests/encoding.test: that supported them. * generic/tclInterp.c:
* * library/init.tcl: Use auto-loading to bring in Tcl Moduledgp2005-04-154-45/+42
| | | | | | * library/tclIndex: support as needed. This reduces startup * library/tm.tcl: time by delaying this initialization to a later time.
* * generic/tclExecute.c: missing semicolons caused failure toMiguel Sofer2005-04-152-3/+8
| | | | compile with TCL_COMPILE_DEBUG.
* * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limitdavygrvy2005-04-141-3/+3
| | | | | | | | | | * tests/io.test: changed from ten bytes to one byte. Need * tests/iogt.test: for this change was proven by Ross Cartlidge <rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed by starting a child process that was intended to continue reading from stdin. Even with -buffersize set to one, nine chars were getting lost by the buffersize over reading for the native read() caused by [read].
* no messagedavygrvy2005-04-141-0/+11
|
* * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limitdavygrvy2005-04-142-6/+6
| | | | | | | | | * tests/io.test: changed from ten bytes to one byte. Need for this change was proven by Ross Cartlidge <rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed by starting a child process that was intended to continue reading from stdin. Even with -buffersize set to one, nine chars were getting lost by buffer size over reading for the native read().
* * unix/tclUnixInit.c (TclpGetEncodingNameFromEnvironment): Reverseddgp2005-04-132-175/+174
| | | | | | | | order of verifying candidate [encoding system] value, checking against a table in memory first before calling Tcl_GetEncoding and potentially scanning through the filesystem. Also ordered the table so that a binary search could be used within it. Improves startup time a bit more on some systems.
* Performance improvement in [clock] - FR 1182459Kevin B Kenny2005-04-132-4/+10
|
* Also improved [fcopy] docsdkf2005-04-132-15/+29
|
* Improve documentation of -encoding binary option to [fconfigure].dkf2005-04-132-3/+12
|
* * generic/tclCompile.c:Commented out the functionsMiguel Sofer2005-04-132-1/+13
| | | | | TclPrintInstruction(), TclPrintObject() and TclPrintSource() when not debugging the compiler, as they are never called in that case.
* * generic/tclInterp.c: Corrected bad syntax of Tcl_Panic() call.dgp2005-04-124-130/+143
| | | | | | | | | | | | | | | | * generic/tclUtil.c (TclGetProcessGlobalValue): More robust handling of bad TclInitProcessGlobalValueProc behavior; an immediate panic rather than a mysterious crash later. * generic/tclEncoding.c: Several changes to the way the encodingFileMap cache is maintained. Previously, it was attempted to keep the file map filled and up to date with changes in the encoding search path. This contributed to slow startup times since it required an expensive "glob" operation to fill the cache. Now the validity of items in the cache are checked at the time they are used, so the cache is permitted to fall out of sync with the encoding search path. Only [encoding names] and Tcl_GetEncodingNames() now pay the full expense. [Bug 1177363]
* added definition of NULL to strstr.c for Bug 1175161Kevin B Kenny2005-04-122-1/+10
|
* Revamp the zone-info compiler to make better use of the facilities availabledkf2005-04-112-301/+237
|
* Import of tommath 0.35Kevin B Kenny2005-04-1075-4385/+7023
|
* Olson's tzdata2005hKevin B Kenny2005-04-1011-1021/+90
|
* * generic/tclBasic.c (TclObjInvoke): Plug memory leak. [Bug 1180368]dgp2005-04-102-1/+6
|
* fix in last commitMiguel Sofer2005-04-091-6/+7
|
* * generic/tclExecute.c: fix possible leak of expansion Tcl_ObjsMiguel Sofer2005-04-092-3/+16
|
* * macosx/README: updated requirements for OS & developer tooldas2005-04-092-12/+15
| | | | versions + other small fixes/cleanup.
* * generic/tclListObj.c (Tcl_ListObjIndex): added missing NULL returndas2005-04-092-2/+6
| | | | when getting index from an empty list.
* * unix/tcl.m4 (Darwin): added -single_module linker flag todas2005-04-093-8/+14
| | | | | TCL_SHLIB_LD_EXTRAS and TK_SHLIB_LD_EXTRAS. * unix/configure: autoconf-2.59
* Fix whitespacedkf2005-04-081-6/+6
|