summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclBasic.c:Miguel Sofer2005-10-094-56/+75
| | | | | | | * generic/tclExecute.c: * generic/tclStrToD.c: * generic/tclStringObj.c: initialise variables to avoid compiler warnings ([Bug 1320818] among others).
* TIP#237 IMPLEMENTATIONdgp2005-10-0830-3295/+5655
| | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code.
* * generic/tclPipe.c (TclCreatePipeline): Fixed [SF Tcl Bugandreas_kupries2005-10-051-7/+11
| | | | 1109294]. Applied the patch provided by David Gravereaux.
* * generic/tclIORChan.c (RcClose): Removed unreachable panic/returnandreas_kupries2005-10-051-4/+1
| | | | statements. This fixes the remainder of [SF Tcl Bug 1286256].
* * tests/env.test (env-6.1):hobbs2005-10-051-7/+27
| | | | | | | | | | | * win/tclWinPort.h: define USE_PUTENV_FOR_UNSET 1 * generic/tclEnv.c (TclSetEnv, TclUnsetEnv): add USE_PUTENV_FOR_UNSET to existing USE_PUTENV define to account for various systems that have putenv(), but can't unset env vars with it. Note difference between Windows and Linux for actually unsetting the env var (use of '='). Correct the resizing of the environ array. We assume that we are in full ownership, but that's not correct.[Bug 979640]
* * generic/tclParse.c (Tcl_ParseCommand): add code that recognizeshobbs2005-10-041-15/+23
| | | | | {} in addition to {expand} for word expansion (make with -DALLOW_EMPTY_EXPAND).
* Tcl_DeleteTimerHandler(): bail out early if passed NULL argument.vasiljevic2005-10-041-3/+6
|
* Tcl_ClearChannelHandlers(): now deletes any outstandingvasiljevic2005-10-041-6/+18
| | | | | timer for the channel. Also, prevents events still in the event queue from triggering on the current channel.
* * generic/tclMain.c: Separate encoding conversion of command linedgp2005-09-301-28/+23
| | | | arguments from list formatting. [Bug 1306162].
* Formatting fixesdkf2005-09-271-127/+126
|
* update tclTomMath.h for bug 1263012Kevin B Kenny2005-09-261-1/+11
|
* Regen tommath.h from release 0.36Kevin B Kenny2005-09-261-11/+28
|
* silence compiler warningdgp2005-09-161-2/+1
|
* * generic/tclStringObj.c (TclAppendFormattedObjs): Revisionkennykb_numerics_branch_20050915dgp2005-09-151-9/+7
| | | | to eliminate one round of string copying.
* * generic/tclBasic.c: More callers of TclObjPrintf anddgp2005-09-159-58/+70
| | | | | | | | | | | | | | * generic/tclCkalloc.c: TclFormatToErrorInfo. * generic/tclCmdMZ.c: * generic/tclExecute.c: * generic/tclIORChan.c: * generic/tclMain.c: * generic/tclProc.c: * generic/tclTimer.c: * generic/tclUtil.c: * unix/tclUnixFCmd.c * unix/configure: autoconf-2.59
* * generic/tclStringObj.c: Bug fixes: ObjPrintfVA needed todgp2005-09-149-93/+57
| | | | | | | | | | | | | | | | | | support "*" fields and needed to interpret precision limits on %s conversions as a maximum number of bytes, not Tcl_UniChars, to take from the (char *) argument. * generic/tclBasic.c: Updated several callers to use * generic/tclCkalloc.c: TclFormatToErrorInfo() and/or * generic/tclCmdAH.c: TclObjPrintf(). * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclIORChan.c: * generic/tclIOUtil.c: * generic/tclNamesp.c: * generic/tclProc.c:
* * generic/tclBasic.c: Updated several callers to usedgp2005-09-142-49/+31
| | | | | | | * generic/tclCmdMZ.c: TclFormatToErrorInfo(). * generic/tclIOUtil.c: * generic/tclNamesp.c: * generic/tclProc.c:
* * generic/tclStringObj.c: Bug fixes: ObjPrintfVA needed todgp2005-09-144-44/+53
| | | | | | | | | | | | | support "*" fields and needed to interpret precision limits on %s conversions as a number of bytes, not Tcl_UniChars, to take from the (char *) argument. * generic/tclBasic.c: Updated several callers to use * generic/tclCmdMZ.c: TclFormatToErrorInfo(). * generic/tclIOUtil.c: * library/init.tcl: Keep [unknown] in sync with errorInfo formatting rules.
* * generic/tclBasic.c: First caller of TclFormatToErrorInfo.dgp2005-09-143-55/+61
| | | | | | * generic/tclInt.h: Using stdarg.h conventions, add more * generic/tclStringObj.c: fixed arguments to TclFormatObj() and TclObjPrintf(). Added new routine TclFormatToErrorInfo().
* * generic/tcl.h: Explicitly standardized on the use of stdarg.hdgp2005-09-137-61/+51
| | | | | | | | | | | | | | | | | * generic/tclBasic.c: conventions for functions with variable number * generic/tclInt.h: of arguments. Support for varargs.h has been * generic/tclPanic.c: implicitly gone for some time now. All * generic/tclResult.c: TCL_VARARGS* macros purged from Tcl sources, * generic/tclStringObj.c: leaving only some deprecated #define's * tools/genStubs.tcl: in tcl.h for the sake of older extensions. * generic/tclDecls.h: make genstubs * doc/AddErrInfo.3: Replaced all documented requirement for use * doc/Eval.3: of TCL_VARARGS_START() with requirement for * doc/Panic.3: use of va_start(). * doc/SetResult.3: * doc/StringObj.3:
* 2005-09-12 Don Porter <dgp@users.sourceforge.net>dgp2005-09-121-4/+6
| | | | | | * generic/tclStringObj.c (TclAppendFormattedObjs): Bug fix: make sure %ld formats force the collection of a wide value, when the value could be a different long.
* silence compiler warningsdgp2005-09-091-5/+2
|
* * generic/tclIORChan.c (RcDecodeEventMask): Added missing typeandreas_kupries2005-09-091-1/+2
| | | | | | declaration for the parameter 'mask'. This fixes the [SF Tcl Bug 1286256]. The other warning can be removed only by removing the panic/return code.
* * generic/tclInt.h: New internal routine TclObjPrintf()dgp2005-09-092-2/+132
| | | | | * generic/tclStringObj.c: is similar to TclFormatObj() but accepts arguments in non-Tcl_Obj format.
* added missing casts in tclStringObj.cKevin B Kenny2005-09-091-3/+3
|
* * generic/tclInt.h: New internal routines TclFormatObj()dgp2005-09-093-3/+622
| | | | | | | | | | * generic/tclStringObj.c: and TclAppendFormattedObjs() to offer sprintf()-like means to append to Tcl_Obj. Work in progress toward [RFE 572392]. * generic/tclCmdAH.c: Compiler directive NEW_FORMAT when #define'd directs the [format] command to be implemented in terms of the new TclAppendFormattedObjs() routine.
* Squelch warningdkf2005-09-081-2/+2
|
* Test suite about fixed up for TIP#254dkf2005-09-081-3/+1
|
* Oops!dkf2005-09-081-19/+19
|
* Added support machinery for TIP#254 testsdkf2005-09-081-8/+269
|
* TIP #254 implementationdkf2005-09-082-962/+1132
| | | | Still missing additional tests.
* * generic/tclUtf.c (Tcl_UniCharToUtf): Corrected handling of negativedgp2005-09-071-36/+38
| | | | | | * tests/utf.test (utf-1.5): Tcl_UniChar input value. Incorrect handling was producing byte sequences outside of Tcl's legal internal encoding. [Bug 1283976].
* Add flag to lists so that evaluating contexts can handle them efficiently muchdkf2005-09-064-963/+1038
| | | | | of the time even when they are not pure. The flag works by keeping track of when the string rep was derived from the internal rep.
* Make symbol static to stop it from being visible outside the Tcl library ondkf2005-09-051-2/+2
| | | | traditional Unix platforms. [Bug 1263012]
* * unix/tclUnixSock.c (InitializeHostName): Synchronized use ofandreas_kupries2005-09-024-9/+9
| | | | | | | | | | | | | | | | | | | | | | | static modifier in declaration and definition of function. * unix/tclUnixChan.c (FileTruncateProc): Synchronized use of static modifier in declaration and definition of function. * generic/tclResult.c (ReleaseKeys): Synchronized use of static modifier in declaration and definition of function. * generic/tclListObj.c (NewListIntRep): Synchronized use of static modifier in declaration and definition of function. * generic/tclEncoding.c (InitializeEncodingSearchPath): Synchronized use of static modifier in declaration and definition of function. * generic/tclEncoding.c (FillEncodingFileMap): Synchronized use of static modifier in declaration and definition of function. * generic/tclIORChan.c (RcNewHandle): Synchronized use of static modifier in declaration and definition of function.
* allow NULL interp in Tcl_FSMatchInDirectoryvincentdarley2005-08-311-2/+3
|
* Bug 1275043Kevin B Kenny2005-08-291-16/+28
|
* * generic/tclIO.c: Moved Tcl_{Cut,Splice}Channel toandreas_kupries2005-08-262-10/+154
| | | | | | | | | {Cut,Splice}Channel for internal use, and created new public functions for Tcl_{Cut,Splice}Channel which walk the whole stack of transformations and invoke the necessary thread actions. Added code to Tcl_(Un)StackChannel to properly invoke the thread actions when pushing and popping transformations on/from a channel.
* Style systematization and _ANSI_ARGS_ removaldkf2005-08-261-1423/+1335
|
* Remove _ANSI_ARGS_dkf2005-08-261-20/+18
|
* More whitespace cleansing and _ANSI_ARGS_ purgingdkf2005-08-263-522/+445
|
* Remove _ANSI_ARGS_ and tidy up commentsdkf2005-08-261-236/+208
|
* Fix crashes when running Snit's test suite caused by traces forcing the interpdkf2005-08-261-2/+5
| | | | result object to become shared.
* Better to panic sanely than to crash with a bad memory access. [Bug 1267380]dkf2005-08-251-1/+7
|
* Fix memory leak caused by throwing away a duplicated objectdkf2005-08-251-5/+4
|
* TIP#219 IMPLEMENTATIONandreas_kupries2005-08-2411-56/+3461
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/SetChanErr.3: ** New File **. Documentation of the new channel API functions. * generic/tcl.decls: Stub declarations of the new channel API. * generic/tclDecls.h: Regenerated * generic/tclStubInit.c: * tclIORChan.c: ** New File **. Implementation of the reflected channel. * generic/tclInt.h: Integration of reflected channel and new error * generic/tclIO.c: propagation into the generic I/O core. * generic/tclIOCmd.c: * generic/tclIO.h: * library/init.tcl: * tests/io.test: Extended testsuite. * tests/ioCmd.test: * tests/chan.test: * generic/tclTest.c: * generic/tclThreadTest.c: * unix/Makefile.in: Integration into the build machinery. * win/Makefile.in: * win/Makefile.vc:
* fix formatting of fp number with smallest significandKevin B Kenny2005-08-241-2/+2
|
* fix a namespace clash with pendingObjData.georgeps2005-08-171-2/+2
|
* Added static to prevent a namespace clash with BuiltinFuncTable.georgeps2005-08-171-2/+2
|
* fixed bad clock test, removed duplicated code in Tcl_FinalizeKevin B Kenny2005-08-171-19/+1
|