summaryrefslogtreecommitdiffstats
path: root/generic/tclBinary.c
Commit message (Collapse)AuthorAgeFilesLines
* fix [2021443] inconsistant "wrong # args" messagesnijtmans2008-07-191-3/+3
|
* fix warnings, remove unused debug code that causes build failuredas2008-06-051-24/+10
|
* TIP #317 implementationpatthoyts2008-06-031-7/+567
|
* Converted the [binary] command into an ensemble.patthoyts2008-05-021-147/+228
|
* Get rid of pre-C89-isms (esp. CONST vs const).dkf2008-04-271-2/+2
|
* 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.
* Fixed annoying fault in [binary format] on 64-bit architectures.dkf2001-08-231-3/+3
|
* (TIP#27) Changed a number of Tcl API's to accept "CONST char*"Kevin B Kenny2001-04-041-8/+8
| | | | in place of simple "char*". (kennykb) [Patch #404026]
* * tests/binary.test:stanton1999-05-031-1/+3
| | | | | * generic/tclBinary.c (DupByteArrayInternalRep): Fixed bug where type was not being set in duplicated object.
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-175/+250
|
* Merged stubs changes into mainline for 8.0stanton1999-03-101-35/+496
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* lintstanton1998-06-251-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+1013