Skip to content
Tcl Source Code Check-in [66347b65e4]
Login

Check-in [66347b65e4]

Overview
Comment:* doc/Alloc.3: Added entries for Tcl_AttemptAlloc, Tcl_AttempRealloc. * 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.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 66347b65e49a6866c410d4c89031857f714db201
User & Date: ericm on 2000-09-14 18:42:27.000
Other Links: manifest | tags
Context
2000-09-17
22:40
* tests/cmdIL.test: Added a test for fix for [Bug: 6212]. * generic/tclCmdIL.c (Tcl_LsortObjCmd): A... check-in: fe4c99079c user: ericm tags: trunk
2000-09-14
18:42
* doc/Alloc.3: Added entries for Tcl_AttemptAlloc, Tcl_AttempRealloc. * doc/StringObj.3: Added entr... check-in: 66347b65e4 user: ericm tags: trunk
2000-09-08
04:00
no message check-in: 5445f97a7a user: davidg tags: trunk
Changes