| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
of always invalidating unicode rep (if the obj has a string rep).
Added hasUnicode flag to String struct, allows decoupling of
validity of unicode rep from buffer size allocated to it (improves
memory allocation efficiency). [Bugs #686782, #671138, #635200]
* macosx/Tcl.pbproj/project.pbxproj:
* macosx/Makefile: reworked embedded build to no longer require
relinking but to use install_name_tool instead to change the
install_names for embedded frameworks.
* macosx/Tcl.pbproj/project.pbxproj: preserve mod dates when
running 'make install' to build framework (avoids bogus rebuilds
of dependent frameworks because tcl headers appear changed).
* tests/ioCmd.test (iocmd-1.8): fix failure when system encoding
is utf-8: use iso8859-1 encoding explicitly.
FossilOrigin-Name: 80440365aca9cb27befccf00f7bbcb088c7f7352
|
|
|
|
|
|
|
|
|
|
|
| |
variable "range" [Bug 664743]
* generic/tclExecute.c (ExprSrandFunc): remove unused
variable "result" [Bug 664743]
* generic/tclStringObj.c (UpdateStringOfString): remove unused
variable "length" [Bug 664751]
* tests/execute.test (execute-7.30): fix for [Bug 664775]
FossilOrigin-Name: efdc16ed56f81aa1a3c5fca12315a4ffc99f3ca8
|
|
|
| |
FossilOrigin-Name: 3dfa905412984478b3242cc6cc14317ab0504f8b
|
|
|
|
|
|
|
| |
* generic/tclStringObj.c (Tcl_GetCharLength): correct ascii char
opt of 2002-11-11 to not stop early on \x00. [Bug #684699]
FossilOrigin-Name: 78c313648a51143f0ac2e1dc15eb1c74709f0d8e
|
|
|
| |
FossilOrigin-Name: dce71c688868534f7139e79a8c65872787f5966d
|
|
|
| |
FossilOrigin-Name: bf6b0dfaf92bb241b87c9882d5d31505e5490d93
|
|
|
| |
FossilOrigin-Name: 602e2df05fd8888c0d53807ea066d4675ee13271
|
|
|
|
|
|
|
|
| |
ascii char case.
(Tcl_GetUniChar): remove unnecessary use of Tcl_UtfToUniChar.
(FillUnicodeRep): Use TclUtfToUniChar.
FossilOrigin-Name: 0dc350572cf8e1c982fdf693b8503e5edf0dafb8
|
|
|
|
|
|
| |
longer needed after the TIP 27 effort.
FossilOrigin-Name: 4bca1d26dbe0eea4e2c7807477efc846faa7ca75
|
|
|
| |
FossilOrigin-Name: c8ce36dee8b35ddaa4191af6f1fcf724b0ebf77e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added the [memory onexit] command, intended to replace [checkmem].
* doc/DumpActiveMemory.3:
* doc/memory.n: Updated documentation for [memory] and related
matters. [Bug 487677]
* mac/tclMacBOAMain.c (Tcl_Main, CheckmemCmd): Removed all the
machinery for the [checkmem] command that is completely duplicated
by code in generic/tclCkalloc.c.
* generic/tclBinary.c:
* generic/tclListObj.c:
* generic/tclObj.c:
* generic/tclStringObj.c: Removed references to [checkmem] in
comments, referencing [memory active] instead, since it is
documented.
FossilOrigin-Name: cf5397db4364827cf4ff5352a5842283b5d194a1
|
|
|
|
|
|
|
|
|
| |
* generic/tclDecls.h:
* generic/tclStubInit.c:
* generic/tclStringObj.c (Tcl_GetUnicodeFromObj): new function to
parallel Tcl_GetStringFromObj (fix of an API oversight).
FossilOrigin-Name: fe1162706a0fd97cfb21c9e2db70be2c41bc50f2
|
|
|
|
|
|
| |
in place of simple "char*". (kennykb) [Patch #404026]
FossilOrigin-Name: bda1abaf857abf5feb7ebd78aeb1f6a60fcbb8c0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/StringObj.3: Added entry for Tcl_AttemptSetObjLength.
* generic/tclDecls.h:
* generic/tclStubInit.c: Regen'ed stubs files from new tcl.decls.
* generic/tcl.decls: Added stubs for the Tcl_Attempt* memory
allocators and for Tcl_AttemptSetObjLength.
* generic/tcl.h: Added #define's for attemptckalloc,
attemptckrealloc, which map to the Tcl_Attempt* memory allocators.
* generic/tclCkalloc.c: Added non-panic'ing versions of Tcl_Alloc,
Tcl_Realloc, etc.; these are called Tcl_AttemptAlloc,
Tcl_AttemptRealloc, etc. These are used by
Tcl_AttemptSetObjLength and the string obj append functions.
* generic/tclStringObj.c: Modified string growth algorithm to use
doubling algorithm as long as possible, and only fall back when
that fails. Added Tcl_AttemptSetObjLength, and modified
AppendUnicodeToUnicodeRep, AppendUtfToUtfRep, and
Tcl_AppendStringsToObjVA to support this.
FossilOrigin-Name: 66347b65e49a6866c410d4c89031857f714db201
|
|
|
|
|
|
|
|
| |
to provide a more conservative string growth algorithm for strings
larger than one megabyte; this allows more efficient use of memory
for very large strings.
FossilOrigin-Name: ce0e80bb0fe6fa3da852c7bc561f1e347d207422
|
|
|
|
|
|
|
| |
(AppendUnicodeToUnicodeRep) removed overallocation by extra
sizeof(Tcl_UniChar) multiplier.
FossilOrigin-Name: 0ea5ede54f53beba31017bb9a422f17b2751c6c0
|
|
|
| |
FossilOrigin-Name: 7fc9fd97f3d2994e805600201469d7bcabafada5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
at the global level for uplevel command.
* generic/tclIOSock.c: changed int to size_t type for len
in TclSockMinimumBuffers.
* generic/tclCkalloc.c: fixed Tcl_DbCkfree to return a value
on NULL input. [Bug: 3400]
* generic/tclStringObj.c: fixed support for passing in negative
length to Tcl_SetUnicodeObj, et al handling routines. [Bug: 3380]
* doc/scan.n:
* tests/scan.test:
* generic/tclScan.c: finished support for inline scan by
supporting XPG identifiers.
* doc/http.n:
* library/http2.1/http.tcl: added register and unregister
commands to http:: package (better support for tls/SSL),
as well as -type argument to http::geturl. [RFE: 2617]
* generic/tclBasic.c: removed extra decr of numLevels in
Tcl_EvalObjEx that could cause seg fault. (mjansen@wendt.de)
* generic/tclEvent.c: fixed possible lack of MutexUnlock in
Tcl_DeleteExitHandler [Bug: 3545]
FossilOrigin-Name: 907f606957a5b4abeaf4a1331ba2e63f73b0a4ea
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
iterates once over the va_list (avoiding a memcpy of it,
which is not portable).
* generic/tclEnv.c: fixed possible ABR error in environ array
* tests/scan.test:
* generic/tclScan.c: added support for use of inline scan,
XPG3 currently not included
* tests/incr.test:
* tests/set.test:
* generic/tclCompCmds.c: fixed improper bytecode handling of
'eval {set array($unknownvar) 5}' (also for incr)
* win/tclWinTest.c: added testvolumetype command, as atime is
completely ignored for Windows FAT file systems
* win/tclWinPort.h: added sys/utime.h to includes
* unix/tclUnixPort.h: added utime.h to includes
* doc/file.n:
* tests/cmdAH.test:
* generic/tclCmdAH.c: added time arguments to atime and mtime
file command methods (support 'touch' functionality)
FossilOrigin-Name: 2c17586d2ad8c1b9d303ea5d8ab2568a9ce5542e
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclParseExpr.c: changed '"' to '\"' to make FreeBSD
happy [Bug: 2625]
* generic/tclProc.c: moved static buf to better location and
changed static msg that would overflow in ProcessProcResultCode
[Bug: 2483] and added Tcl_DStringFree to Tcl_ProcObjCmd.
Also reworked size of static buffers.
* tests/stringObj.test: added test 9.11
* generic/tclStringObj.c: changed Tcl_AppendObjToObj to
properly handle the 1-byte dest and mixed src case where
both had had Unicode string len checks made on them. [Bug: 2678]
FossilOrigin-Name: dc02bb24c964af4716603ae9d14a3325d3ff77ea
|
|
|
| |
FossilOrigin-Name: 4a56d07c39a5efabedbaaaf54bf7ac31fcdfa073
|
|
|
| |
FossilOrigin-Name: 0cb1b747f406f348a4d63853be80cc0a159365f2
|
|
|
| |
FossilOrigin-Name: 3f45ef233eaa4dbf4fcc0b9e55d62345627fc02f
|
|
|
|
|
|
|
|
|
|
|
| |
present in the Unicode obj).
Updated the teststringobj command to look in the correct location for the
amount of space allocated for the UTF string rep.
Note: one stringObj test is still failing; it reflects a change in
that may not be undesirable...
FossilOrigin-Name: 6a28946962ebf4d385111ed66d14619c71689ae4
|
|
|
|
|
|
|
|
|
|
|
| |
the puplic API: Tcl_NewUnicodeObj, Tcl_SetUnicodeObj,
Tcl_GetUnicode, Tcl_GetUniChar, Tcl_GetCharLength, Tcl_GetRange,
Tcl_AppendUnicodeToObj.
Note: some stringObj tests are still failing--the teststringobj command
still needs to be updated.
FossilOrigin-Name: 23b23af342a570dab211294eff79a331869224c5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclVar.c (Tcl_SetVar2Ex):
* generic/tclStringObj.c (Tcl_AppendObjToObj):
* generic/tclCmdMZ.c (Tcl_StringObjCmd): optimized the string
index, string length, string range, and append command in cases
where the object's internal rep is a bytearray. Objects with
other internal reps are converted to have the new unicode internal
rep.
* unix/Makefile.in:
* win/Makefile.in:
* win/Makefile.vc:
* tests/unicode.test:
* generic/tclInt.h:
* generic/tclObj.c:
* generic/tclUnicodeObj.c: added a new object type to store the
unicode representation of a string.
* generic/tclTestObj.c: added the objtype option to the testobj
command. This option returns the name of the type of internal rep
an object has.
FossilOrigin-Name: 8fcb19ead37123b20e22ef888f8c6c310abde293
|
|
|
|
|
|
|
|
| |
* generic/tclStringObj.c (Tcl_AppendStringsToObjVA): Fixed to copy
arglist using memcpy instead of assignment so it works properly on
OS/390. [Bug: 1997]
FossilOrigin-Name: dea0868b6c82a765b09713587753a64071692834
|
|
|
|
|
|
|
|
|
|
|
| |
* generic/tclListObj.c:
* generic/tclObj.c:
* generic/tclStringObj.c: Changed to avoid freeing the string
representation before freeing the internal rep. This helps with
debugging since the string rep will still be valid when the free
proc is invoked.
FossilOrigin-Name: 101102ec64e854b9c1a05a9407a0824a7dfc0271
|
|
|
| |
FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
|
|
|
| |
FossilOrigin-Name: 19696933517612024e7dbcfee6e3c8d3b4e41772
|
|
|
| |
FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
|
|
FossilOrigin-Name: cacdd0f329872d67973970d74c6978730bc24baa
|