summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
Commit message (Collapse)AuthorAgeFilesLines
* Backport of bytearray append machinery to support bug fixes in ReadBytes.dgp2014-01-211-0/+92
|
* Tcl_InvalidateStringRep -> TclInvalidateStringRepjan.nijtmans2013-02-071-2/+2
|
* Use twoPtrValue.ptr1 in stead of otherValuePtr everywhere. This is exactly ↵jan.nijtmans2013-01-311-2/+2
| | | | the same field, but it allows twoPtrValue.ptr2 to be used for other purposes.
* eliminate compiler warning in previous commitjan.nijtmans2012-09-171-1/+1
|
* Nicer style test.stwo2012-09-161-2/+2
|
* [Bug 3496014] Protect Tcl_SetByteArrayObj for invalid valuesjan.nijtmans2012-08-231-1/+6
| | | (Backported from Tcl 8.6)
* [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-1/+1
|\
* | Backport fix for [Bug 2857044].dgp2011-04-271-0/+1
| |
* | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
|\ \ | |/ | | more harm than good. Purged them.
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | more harm than good. Purged them.
| * Backported fix for #1923966patthoyts2008-03-241-2/+4
| |
| * De-fang an instance of the shared-result anti-pattern. [Bug 1716704]dkf2007-06-301-1/+5
| |
| * * generic/tclBasic.c:Miguel Sofer2005-10-231-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclLink.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclScan.c: * generic/tclTest.c: * generic/tclVar.c: * mac/tclMacInit.c: * unix/tclUnixInit.c: * win/tclWinInit.c: Insure that the core never calls TclPtrSetVar, Tcl_SetVar2Ex, Tcl_ObjSetVar2 or Tcl_SetObjErrorCode with a 0-ref new value. It is not possible to handle error returns correctly in that case [Bug 1334947], one has the choice of leaking the object in some cases, or else risk crashing in some others.
| * Fix [Bug 1116542]dkf2005-09-271-2/+18
| |
| * * generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bugdas2003-12-171-2/+4
| | | | | | | | when numeric scan-value cache contains NULL value.
| * Stop losing references when variables are repeated in [binary scan]. [851747]dkf2003-12-021-40/+71
| |
* | * generic/tclBinary.c (UpdateStringOfByteArray): Add panicdgp2010-04-301-2/+5
| | | | | | | | | | when the generated string representation would grow beyond Tcl's size limits. [Bug 2994924]
* | improved fix keeping short-circuitpatthoyts2008-03-241-3/+5
| |
* | bug #1923966 - crash in binary format. Added tests for the above crash ↵patthoyts2008-03-241-2/+2
| | | | | | | | condition.
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | [Patch 1830038]: Increased usage of macros to detect and take advantage of ↵Miguel Sofer2007-11-111-14/+19
| | | | | | | | objTypes.
* | * generic/tclBinary.c (Tcl_GetByteArrayFromObj): check type beforehobbs2007-11-091-2/+4
| | | | | | | | func jump
* | header cleanupdgp2007-09-071-2/+2
| |
* | * generic/tclBinary.c: Addressed several code paths where theKevin B Kenny2007-04-241-1/+6
| | | | | | | | | | error return from the 'binary format' command leaked the result buffer.
* | * generic/tclBinary.c (Tcl_SetByteArrayLength): Replaced ckalloc() /dgp2007-03-191-9/+5
| | | | | | | | memcpy() sequence with ckrealloc() call.
* | various "const" additions, in line with TIP #27nijtmans2007-02-201-17/+18
| |
* | Minor changes (whitespace police, etc.)dkf2006-11-071-59/+56
| |
* | Silence GCC (cast is always safe; value is known to fit with wiggle room)dkf2006-10-101-2/+2
| |
* | TIP #275: Support unsigned values in binary commandpatthoyts2006-10-061-19/+57
| |
* | Various minor object file size efficiency fixes. [Bug 1530474]dkf2006-08-101-4/+4
| |
* | * generic/tclBinary.c: Revised the handling of the Q and q formatdgp2006-04-261-10/+62
| | | | | | | | | | | | * generic/tclInt.h: specifiers for [binary] to account for the * generic/tclStrToD.c: "middle endian" floating point format used in Nokia N770.
* | * generic/tclBinary.c:Miguel Sofer2005-11-041-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclIOCmd.c: * generic/tclLink.c: * generic/tclTest.c: * generic/tclVar.c: fix for [Bug 1334947]. The functions TclPtrSetVar, Tcl_ObjSetVar2 and Tcl_SetVar2Ex now always consume the newValuePtr argument - i.e., they will free a 0-refCount object if they failed to set the variable. Fixed all callers in the core.
* | Formatting fixesdkf2005-09-271-127/+126
| |
* | Getting more systematic about styledkf2005-07-171-847/+829
| |
* | * generic/tclBasic.c: Dropped the TCL_NO_MATH configuration.dgp2005-05-131-5/+1
| | | | | | | | | | | | * generic/tclBinary.c: It's believed this has not been working * generic/tclExecute.c: in a long time. Tcl needs math.h. * unix/Makefile.in: [RFE 1200680].
* | Fixed uninitialized memory read in tclBinary.c when passing a NaN to ↵Kevin B Kenny2005-05-101-1/+2
| | | | | | | | 'd','q','Q' formats
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-3/+12
| |
* | * generic/tclBasic.c:dgp2004-10-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclCompExpr.c: * generic/tclDictObj.c: It is a poor practice to directly set or append to the value of the objResult of an interp, because that value might be shared, and in that circumstance a Tcl_Panic() will be the result. Searched for example of this practice and replaced with safer alternatives, often using the Tcl_AppendResult() routine that dkf just rehabilitated.
* | * generic/tclBasic.c:dgp2004-10-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | * generic/tclBinary.c: * generic/tclCmdAH.c: It is a poor practice to directly set or append to the value of the objResult of an interp, because that value might be shared, and in that circumstance a Tcl_Panic() will be the result. Searched for example of this practice and replaced with safer alternatives, often using the Tcl_AppendResult() routine that dkf just rehabilitated.
* | Factorize out the code for freeing an object's internal rep.dkf2004-09-291-12/+4
| |
* | TIP#129 implementation. Probably also much more breakage in the test suite toodkf2004-05-131-132/+358
| |
* | Patch 922727 committed. Implements three changes:dgp2004-04-061-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
* | All uses of 'panic' (the macro) changeddavygrvy2003-12-241-3/+3
| | | | | | | | | | | | | | to 'Tcl_Panic' (the function). The #define of panic in tcl.h clearly states it is deprecated in the comments. [Patch 865264]
* | * generic/tclBinary.c (DeleteScanNumberCache): fixed crashing bugdas2003-12-171-2/+4
| | | | | | | | when numeric scan-value cache contains NULL value.
* | Stop losing references when variables are repeated in [binary scan]. [851747]dkf2003-12-021-40/+71
|/
* Stopped sign-bit propagation in [binary scan] of wide values. [Bug #690774]dkf2003-02-211-20/+20
|
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-6/+72
| | | | | 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.
* * More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that weredgp2002-01-171-2/+2
| | | | | | | overlooked before. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes a source incompatibility in the tablePtr arguments of the Tcl_GetIndexFromObj* routines.
* * generic/tclCkalloc.c (MemoryCmd, TclFinalizeMemorySubsystem):dgp2001-12-281-3/+3
| | | | | | | | | | | | | | | | | | | 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.
* * generic/tclBinary.c: Added caching scheme to reduce number of objectdkf2001-11-291-19/+114
| | | | allocations when doing scans of large repetitive binary strings.