Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | - eliminate some unnessary type casts | nijtmans | 2009-02-10 | 18 | -110/+114 |
| | | | | | - some internal const decorations - spacing | ||||
* | Removed handling of (objPtr->bytes != NULL) from UpdateStringOfString, | dgp | 2009-02-10 | 1 | -3/+1 |
| | | | | which is only called when objPtr->bytes is NULL. | ||||
* | Simplify Tcl_SetObjLength by removing unreachable code. | dgp | 2009-02-10 | 1 | -10/+3 |
| | |||||
* | Simplify SetStringFromAny() by removing unreachable and duplicate code. | dgp | 2009-02-10 | 1 | -25/+13 |
| | |||||
* | * generic/tclObj.c (Tcl_GetString): Added comments and validity | dgp | 2009-02-10 | 2 | -12/+22 |
| | | | | | | checks following the call to an UpdateStringProc. Simplify Tcl_AttemptSetObjLength by removing unreachable code. | ||||
* | Convert all Tcl_InvalidateStringRep() calls into macros. | dgp | 2009-02-10 | 1 | -7/+7 |
| | |||||
* | * generic/tclStringObj.c: Reduce code duplication in Tcl_GetUnicode*. | dgp | 2009-02-10 | 1 | -5/+3 |
| | | | | Restrict AppendUtfToUtfRep to non-negative length appends. | ||||
* | * generic/tclStringObj.c (Tcl_GetUnicode*): Reduce code duplication. | dgp | 2009-02-10 | 1 | -25/+2 |
| | |||||
* | fix [Bug 2555129] const compiler | nijtmans | 2009-02-09 | 1 | -3/+3 |
| | | | | warning (as error) in tclCompile.c | ||||
* | Improve error messages. [Bug 2573172] | dkf | 2009-02-07 | 1 | -181/+198 |
| | |||||
* | Fix for [Bug 2544618] | Joe Mistachkin | 2009-02-06 | 1 | -6/+6 |
| | |||||
* | Simplify the implementation of some commands now that the underlying string | dkf | 2009-02-05 | 1 | -99/+59 |
| | | | | API knows more about bytearrays. | ||||
* | Add missing cast | dkf | 2009-02-05 | 1 | -2/+2 |
| | |||||
* | Fix [Bug 2568434] | dkf | 2009-02-05 | 1 | -2/+6 |
| | |||||
* | More/better/cleaner handling of the bytearray special casing for string ops. | dkf | 2009-02-05 | 1 | -14/+82 |
| | |||||
* | Improve efficiency of Tcl_AppendObjToObj's bytearray handling. | dkf | 2009-02-05 | 1 | -1/+30 |
| | |||||
* | comment typo | dgp | 2009-02-04 | 1 | -2/+2 |
| | |||||
* | * generic/tclStringObj.c: Added overflow protections to the | dgp | 2009-02-04 | 1 | -4/+14 |
| | | | | | AppendUtfToUtfRep routine to either avoid invalid arguments and crashes, or to replace them with controlled panics. [Bug 2561794] | ||||
* | * generic/tclCmdMZ.c: Prevent crashes due to int overflow of the | dgp | 2009-02-04 | 1 | -11/+14 |
| | | | | length of the result of [string repeat]. [Bug 2561746] | ||||
* | - eliminate some unnessary type casts | nijtmans | 2009-02-03 | 7 | -66/+69 |
| | | | | | - some internal const decorations - spacing | ||||
* | Added missing declaration of tclCmdNameType | dkf | 2009-02-03 | 1 | -1/+2 |
| | |||||
* | Fix for [Bug 2558422] though this area is still a mess. | dkf | 2009-02-03 | 1 | -2/+10 |
| | |||||
* | * generic/tclStringObj.c (SetUnicodeObj): Corrected failure of | dgp | 2009-02-03 | 1 | -43/+28 |
| | | | | | Tcl_SetUnicodeObj() to panic on a shared object. [Bug 2561488]. Also factored out common code to reduce duplication. | ||||
* | * generic/tclObj.c (Tcl_GetStringFromObj): Reduce code duplication. | dgp | 2009-02-03 | 1 | -8/+2 |
| | |||||
* | * generic/tclInterp.c: Reverted the conversion of [interp] into an | dgp | 2009-02-02 | 1 | -956/+441 |
| | | | | | | | | * tests/interp.test: ensemble. Such conversion is not necessary * tests/nre.test: (or even all that helpful) in the NRE-enabling of [interp invokehidden], and it has other implications -- including significant forkage of the 8.5 and 8.6 implementations -- that are better off avoided if there's no gain. | ||||
* | * generic/tclStringObj.c (STRING_NOMEM): Add missing cast of | dgp | 2009-02-02 | 1 | -2/+3 |
| | | | | NULL to (char *) that upsets some compilers. [Bug 2494093]. | ||||
* | * generic/tclStringObj.c (Tcl_(Attempt)SetObjLength): Added | dgp | 2009-02-02 | 1 | -1/+16 |
| | | | | | | protections against callers asking for negative lengths. It is likely when this happens that an integer overflow is to blame. [Bug 2553906]. | ||||
* | Fix [Bug 2519474] | dkf | 2009-01-29 | 1 | -2/+3 |
| | |||||
* | Fix [Bug 2537839] | dkf | 2009-01-29 | 1 | -9/+6 |
| | |||||
* | * generic/tclInterp.c: Convert the [interp] command into a | dgp | 2009-01-29 | 1 | -441/+956 |
| | | | | | [namespace ensemble]. Work in progress to NRE-enable the [interp invokehidden] subcommand. | ||||
* | Fix [Bug 2529117] | dkf | 2009-01-29 | 1 | -21/+40 |
| | |||||
* | Apply resolution for [Bug 2529157]. Fix another location in tclBasic.c where | dkf | 2009-01-28 | 3 | -65/+57 |
| | | | | only the objProc case was handled and not the nreProc case. | ||||
* | Fix [Bug 2531577] | dkf | 2009-01-27 | 1 | -1/+15 |
| | |||||
* | Fix [Bug 1028264]: WSACleanup() too early. The fix introduces "late exit ↵ | ferrieux | 2009-01-27 | 2 | -3/+107 |
| | | | | handlers" for similar late process-wide cleanups. | ||||
* | minor formatting improvements | dkf | 2009-01-26 | 1 | -4/+5 |
| | |||||
* | Fix [Bug 2536400] | dkf | 2009-01-26 | 1 | -5/+9 |
| | |||||
* | CONSTify TclPrintInstruction and TclpNativeJoinPath (TIP #27) | nijtmans | 2009-01-22 | 10 | -269/+34 |
| | | | | | {unix win} in *.decls is equivalent to {generic} tclGetDate.y, tclDate.c: single internal const decoration | ||||
* | * generic/tclIORChan.c (ReflectClose): Fix for [Bug 2458202]. | andreas_kupries | 2009-01-22 | 2 | -13/+23 |
| | | | | | | | * generic/tclIORTrans.c (ReflectClose): Closing a channel may supply NULL for the 'interp'. Test for finalization needs to be different, and one place has to pull the interp out of the channel instead. | ||||
* | * generic/tclStringObj.c: New fix for [Bug 2494093] replaces the | dgp | 2009-01-21 | 1 | -24/+30 |
| | | | | flawed attempt committed 2009-01-09. | ||||
* | * generic/tcl.h: Bump patchlevel to 8.6b1.1 to distinguish | dgp | 2009-01-16 | 1 | -2/+2 |
| | | | | | | | | * library/init.tcl: CVS snapshots from the 8.6b1 and 8.6b2 releases * unix/configure.in: and to deal with the fact that the HEAD of * win/configure.in: init.tcl will not [source] in Tcl 8.6b1 . * unix/configure: autoconf-2.59 | ||||
* | [Bug 2512659] patch for typo applied | patthoyts | 2009-01-16 | 1 | -2/+3 |
| | |||||
* | * generic/tclBasic.c (Tcl_DeleteCommandFromToken): Reverted | dgp | 2009-01-14 | 1 | -1/+10 |
| | | | | | | | | most of the substance of my 2009-01-12 commit. NULLing the objProc field of a Command when deleting it is important so that tests for certain classes of commands don't return false positives when applied to deleted command tokens. Overall change is now just replacement of a false comment with a true one. | ||||
* | Move [throw] implementation into C. | dkf | 2009-01-13 | 3 | -3/+105 |
| | |||||
* | * generic/tclBasic.c (Tcl_DeleteCommandFromToken): One consequence | dgp | 2009-01-12 | 1 | -11/+1 |
| | | | | | | | | | | | | of the NRE rewrite is that there are now situations where a NULL objProc field in a Command struct is perfectly normal. Removed an outdated comment in Tcl_DeleteCommandFromToken that claimed we use (cmdPtr->objPtr == NULL) as a test of command validity. In fact we use (cmdPtr->flags & CMD_IS_DELETED) to perform that test. Also removed the setting to NULL, since any extension following the advice of the old comment is going to be broken by NRE anyway, and needs to shift to flag-based testing (or stop intruding into such internal matters). Part of [Bug 2486550]. | ||||
* | * generic/tclStringObj.c (STRING_SIZE): Corrected failure to limit | dgp | 2009-01-09 | 1 | -4/+7 |
| | | | | | memory allocation requests to the sizes that can be supported by Tcl's memory allocation routines. [Bug 2494093]. | ||||
* | Fix [Bug 1558654] | dkf | 2009-01-09 | 1 | -1/+9 |
| | |||||
* | Style fixes (unfouling whitespace, sorting comments, removing useless casts, ↵ | dkf | 2009-01-09 | 36 | -1034/+1079 |
| | | | | etc.) | ||||
* | * generic/tclStringObj.c (STRING_UALLOC): Added missing parens | dgp | 2009-01-08 | 1 | -2/+2 |
| | | | | | required to get correct results out of things like STRING_UALLOC(num + append). [Bug 2494093]. | ||||
* | Generate errorcodes for more cases. | dkf | 2009-01-08 | 7 | -12/+57 |
| | |||||
* | Corrected twiddling in internals of dictionaries so that literals can't get | dkf | 2009-01-06 | 1 | -2/+3 |
| | | | | destroyed. |