| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
* tests/encoding.test: corrected iso2022 encoding results.
added encoding-24.*
* generic/tclEncoding.c (EscapeFromUtfProc): corrected output of
escape codes as per RFC 1468. [Patch #474358] (taguchi)
(TclFinalizeEncodingSubsystem): corrected potential double-free
when encodings were finalized on exit. [Bug #219314, #524674]
|
|
|
|
|
|
|
| |
* generic/tclIO.c (FilterInputBytes): reset the TCL_ENCODING_START
flags in the ChannelState when using 'gets'. [Bug #523988]
Also reduced the value of ENCODING_LINESIZE from 30 to 20 as this
seems to improve the performance of 'gets' according to tclbench.
|
|
|
|
|
| |
structure was also deleted when a command was deleted to prevent a
mem leak.
|
|
|
|
| |
correctly.
|
|
|
|
| |
tls on thread exit.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tcl.decls (Tcl_GetIndexFromObjStruct):
* generic/tclIndexObj.c (Tcl_GetIndexFromObjStruct): Revised the
prototype of the Tcl_GetIndexFromObjStruct to take its struct
table as a (CONST VOID *) argument, better describing what it is,
maintaining source compatibility, and adding CONST correctness
according to TIP 27. Thanks to Joe English for an elegant
solution. [Bug 520304]
* generic/tclDecls.h: make genstubs
|
|
|
|
|
| |
count management errors on the interactive commandPtr Tcl_Obj found by
Purify. Thanks to Jeff Hobbs for the report and assistance.
|
| |
|
| |
|
|
|
|
| |
in error case.
|
| |
|
| |
|
|
|
|
| |
error case to prevent mem leak.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Before invoking ckalloc when creating a Tcl_HashEntry,
check that the amount of memory being allocated is
at least as large as sizeof(Tcl_HashEntry). The previous
code was allocating memory regions that were one
or two bytes short. [Bug #521950] (dejong)
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* generic/tclObj.c: renamed global variable emptyString ->
tclEmptyString because it is no longer static.
* generic/tclPkg.c: Fix for panic when library is loaded on a
platform without backlinking without proper use of stubs. [Bug 476537]
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Overlooked a few source incompatibilities. Now using CONST84.
* generic/tclDecls.h: make genstubs
* generic/tcl.h (Tcl_CmdObjTraceProc): silence warning from Sun
Workshop compiler.
|
|
|
|
| |
configure doesn't tell it explicitly.
|
|
|
|
|
|
| |
machine words by default. This seems to be what the test suite expected
anyway, and it is a fairly sensible choice. The other alternative was to
make %d always 32-bit and %ld always 64-bit, but that'd be more complex to do.
|
|
|
|
| |
use of VOID* in default case (GNU-ism).
|
| |
|
|
|
|
|
|
|
| |
* tclIOGT.c:
* tclIndexObj.c: Touchups to the TIP 72 patch to make it
compileable under Windows again. The changes are not complete,
there is one nasty regarding _stati64
|
|
|
|
|
| |
This version builds clean on Solaris/SPARC, with GCC and CC, both with and
without threads and both in 32-bit and 64-bit mode.
|
|
|
|
|
|
| |
#517503, a memory leak reported by Miguel Sofer
<msofer@users.sourceforge.net>. The leak happens if an error
occurs for "set var [gets $chan]" and leak one empty object.
|
|
|
|
| |
Tcl_SetCommandInfoFromToken. (TIPs #32 and #79.)
|
|
|
|
| |
called on a pointer to NULL.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
restored to return (char *): Tcl_DStringAppend,
Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName,
Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString,
Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also
restored Tcl_WinUtfToTChar to return (TCHAR *) and
Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified
some callers. This change recognizes that Tcl_DStrings are
de-facto white-box objects.
* generic/tclCmdMZ.c: corrected use of C++-style comment.
|
|
|
|
|
|
| |
* generic/tclScan.c (Tcl_ScanObjCmd): corrected scan 0x... %x
handling that didn't accept the 0x as a prelude to a base 16
number. [Bug #495213]
|
|
|
|
| |
for bad RE to stop checking further.
|
|
|
|
|
|
|
|
| |
search for simple 'string map' style regsub calls.
Delayed creation of resultPtr object until an initial match is
made, as the input string object can then be reused for no matches.
(Tcl_StringObjCmd): optimization improvements to the STR_MAP
algorithm for zero-length and nocase cases.
|
| |
|
|
|
|
| |
earlier to avoid shimmering problem.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
TIP 27 changes below as a POTENTIAL INCOMPATIBILITY, the
source of the incompatibility has been parameterized so that
it can be removed. When compiling extension code against
the Tcl header files, use the compiler flag -DUSE_NON_CONST
to remove the irresolvable source incompatibilities introduced
by the TIP 27 changes. Resolvable changes are left for extension
authors to resolve.
|
|
|
|
|
| |
* generic/tclCompCmds.c (TclCompileRegexpCmd): enhanced to support
-nocase and -- options.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclInt.h:
* generic/tclBasic.c: added TclCompileRegexpCmd entry
* generic/tclCompCmds.c (TclCompileStringCmd): corrected to return
TCL_OUT_LINE_COMPILE instead of TCL_ERROR for parsing errors, so
it only throws the error for runtime compile, in case the user
modifies 'string'.
(TclCompileRegexpCmd): first try at a byte-compiled regexp
command. It handles static strings and ^$ bounded static strings.
(TclCompileAppendCmd): made TclPushVarName call always use
TCL_CREATE_VAR as numWords is always > 2 at that point.
|
|
|
|
| |
possibly dangerous decr in macro call.
|
|
|
|
|
| |
typedef of TCHAR when __STDC__ is defined when using the uncommon
-Za compiler switch with the microsoft compiler.
|