summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Undo mistaken commit to wrong branch caused by CVS fumble... :-}dkf2006-10-201-11/+7
|
* Consolidated TIP#257 patch applied to HEAD to allow for experimentation bydkf2006-10-201-7/+11
| | | | other developers
* * generic/tclBasic.c: Moved TIP#219 cleanup to DeleteInterpProc.andreas_kupries2006-10-161-10/+10
|
* TIP#268 IMPLEMENTATIONandreas_kupries2006-09-221-2/+9
| | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/PkgRequire.3: Documentation of extended API, * doc/package.n: extended testsuite. * tests/pkg.test: * generic/tcl.decls: Implementation. * generic/tclBasic.c: * generic/tclConfig.c: * generic/tclInt.h: * generic/tclPkg.c: * generic/tclTest.c: * generic/tclTomMathInterface.c: * library/init.tcl: * library/package.tcl: * library/tm.tcl:
* * generic/tclBasic.c (Tcl_CreateInterp): init iPtr->threadIdhobbs2006-08-301-1/+2
|
* Various minor object file size efficiency fixes. [Bug 1530474]dkf2006-08-101-53/+47
|
* * generic/tclBasic.c (ExprSrandFunc): Restore acceptance of wide/bigdgp2006-05-041-4/+15
| | | | * doc/mathfunc.n: integer values by srand() [Bug 1480509].
* * generic/tclBasic.c: Revised handling of TCL_EVAL_* flags todgp2006-03-061-35/+22
| | | | | * tests/parse.test: simplify TclEvalObjvInternal and to correct the auto-loading of alias targets (parse-8.12). [Bug 1444291].
* * generic/tclBasic.c: Corrections to be sure that TCL_EVAL_GLOBALdgp2006-02-281-1/+9
| | | | | | | * tests/namespace.test: evaluations act the same as [uplevel #0] * tests/parse.test: evaluations, even when execution traces or * tests/trace.test: invocations of [::unknown] are present. [Bug 1439836].
* * generic/tclBasic.c: Corrected a few bugs in how [namespace unknown]dgp2006-02-221-51/+42
| | | | * tests/namespace.test: interacts with TCL_EVAL_* flags. [Patch 958222]
* TIP#258 IMPLEMENTATIONdgp2006-02-081-8/+1
| | | | | | | | | | | | | | | | | | | | | * doc/Encoding.3: New subcommand [encoding dirs]. * doc/encoding.n: New routine Tcl_GetEncodingNameFromEnvironment. * generic/tcl.decls: Made public: * generic/tclBasic.c: TclGetEncodingFromObj * generic/tclCmdAH.c: -> Tcl_GetEncodingFromObj * generic/tclEncoding.c:TclGetEncodingSearchPath * generic/tclInt.decls: -> Tcl_GetEncodingSearchPath * generic/tclInt.h: TclSetEncodingSearchPath * generic/tclTest.c: -> Tcl_SetEncodingSearchPath * library/init.tcl: Removed commands: * tests/cmdAH.test: [tcl::unsupported::EncodingDirs] * tests/encoding.test: [testencoding path] (Tcltest) * unix/tclUnixInit.c: [Patch 1413934]. * win/tclWinInit.c: * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c:
* TIP#194 IMPLEMENTATIONdgp2006-02-011-1/+2
| | | | | | | | | | | * doc/apply.n: (New file) New command [apply]. [Patch 944803]. * doc/uplevel.n: * generic/tclBasic.c: * generic/tclInt.h: * generic/tclProc.c: * tests/apply.test: (New file) * tests/proc-old.test: * tests/proc.test:
* TIP#181 IMPLEMENTATIONdgp2006-02-011-12/+57
| | | | | | | | | | | | | * doc/Namespace.3: New command [namespace unknown]. New public * doc/namespace.n: C routines Tcl_(Get|Set)NamespaceUnknownHandler. * doc/unknown.n: [Patch 958222]. * generic/tcl.decls: * generic/tclBasic.c: * generic/tclInt.h: * generic/tclNamesp.c: * tests/namespace.test: * generic/tclDecls.h: make genstubs * generic/tclStubInit.c:
* * generic/tclBasic.c: Moved Tcl_LogCommandInfo from tclBasic.c todgp2006-01-111-61/+1
| | | | | | | | | | * generic/tclNamesp.c: tclNamesp.c to get access to identifier with * tests/error.test (error-7.0): file scope. Added check for traces on ::errorInfo, and when present fall back to contruction of the stack trace in the variable so that write trace notification timings are compatible with earlier Tcl releases. This reduces, but does not completely eliminate the ***POTENTIAL INCOMPATIBILITY*** created by the 2004-10-15 commit. [Bug 1397843].
* Export Tcl_InitBignumFromDoubleKevin B Kenny2005-12-271-4/+4
|
* * macosx/Tcl.xcode/project.pbxproj:das2005-12-141-2/+2
| | | | | | | * macosx/Tcl.xcodeproj/project.pbxproj: * unix/Makefile.in: add new tclTomMath* files. * generic/tclBasic.c: replace panic with Tcl_Panic.
* Export stubs for libtommath; fix mingw compiler warningsKevin B Kenny2005-12-131-1/+5
|
* make [clock format] go fasterKevin B Kenny2005-11-291-17/+3
|
* * generic/tclBasic.c (CallCommandTraces): Save/restore thedgp2005-11-141-1/+9
| | | | interp result during traces to fix [Bug 1355342].
* fixing last commit, no Changelog entryMiguel Sofer2005-11-131-3/+9
|
* * generic/tclBasic.c (Tcl_DeleteCommandFromToken):Miguel Sofer2005-11-131-9/+3
| | | | | | * generic/tclObj.c (Tcl_GetCommandFromObj): more partial fixes for [Bug 1354540] - making sure that cached references to a command being deleted cannot be made reusable by a delete trace.
* typodas2005-11-121-2/+2
|
* More bits of ANSIfyingdkf2005-11-111-653/+665
| | | | Also start moving to use the new code for doing formatted prints to objects
* * generic/tclBasic.c (Tcl_DeleteCommandFromToken):Miguel Sofer2005-11-111-8/+9
| | | | | | | | | * generic/tclObj.c (Tcl_GetCommandFromObj): bump the cmd epoch early to insure that cached references to this command are invalidated. Partial fix for [Bug 1352734] - at least insures that namespace-51.13 does not cause a panic. The test is still marked as knownbug, pending resolution of what is actually the correct return value ([Bug 1354540])
* * generic/tclBasic.c:Miguel Sofer2005-10-091-1/+2
| | | | | | | * generic/tclExecute.c: * generic/tclStrToD.c: * generic/tclStringObj.c: initialise variables to avoid compiler warnings ([Bug 1320818] among others).
* TIP#237 IMPLEMENTATIONdgp2005-10-081-449/+547
| | | | | | [kennykb-numerics-branch] Resynchronized with the HEAD; at this checkpoint [-rkennykb-numerics-branch-20051008], the HEAD and kennykb-numerics-branch contain identical code.
* * generic/tclBasic.c: More callers of TclObjPrintf anddgp2005-09-151-3/+4
| | | | | | | | | | | | | | * 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-141-5/+3
| | | | | | | | | | | | | | | | | | 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/tclStringObj.c: Bug fixes: ObjPrintfVA needed todgp2005-09-141-12/+7
| | | | | | | | | | | | | 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-141-17/+4
| | | | | | * 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-131-5/+4
| | | | | | | | | | | | | | | | | * 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:
* Add flag to lists so that evaluating contexts can handle them efficiently muchdkf2005-09-061-915/+961
| | | | | 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.
* Bug 1275043Kevin B Kenny2005-08-291-16/+28
|
* TIP#219 IMPLEMENTATIONandreas_kupries2005-08-241-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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:
* Added static to prevent a namespace clash with BuiltinFuncTable.georgeps2005-08-171-2/+2
|
* Handle abs(-0x80000000) [Bug 1241572]Kevin B Kenny2005-08-051-2/+10
|
* * generic/tclBasic.c (Tcl_CallWhenDeleted): Converted to usedgp2005-07-261-9/+6
| | | | | per-thread counter, rather than a process global one that required mutex protection. [RFE 1077194]
* Compiler for [dict] and related changes.dkf2005-07-211-2/+2
|
* * generic/tclBasic.c: Added missing walk of the list of active tracesdgp2005-06-211-1/+2
| | | | | | | * generic/tclTrace.c: to cleanup references to traces being deleted. * generic/tclInt.h: [Bug 1201035] Made the walk of the active trace * tests/trace.test (trace-34.*): list aware of the direction of trace scanning, so the proper correction can be made. [Bug 1224585]
* Fix [Bug 1220058] and quash a bizarre case which generated a bogus error msg.dkf2005-06-141-4/+9
| | | | Thanks to Will Duquette for helping to track this one down.
* TIP#208 implementationdkf2005-06-061-1/+4
| | | | It's crude (especially in the tests and docs department) and incomplete (no truncation on non-POSIX platforms).
* * generic/tclBasic.c: For compatibility with earlier Tcl releases,dgp2005-06-011-2/+2
| | | | | | | * generic/tclResult.c: when a command procedure simply does a * generic/tclTest.c: "return TCL_RETURN;" we must interpret that * tests/result.test: the same as "return Tcl_SetReturnOptions(interp, Tcl_NewObj());" [Bug 1209759].
* TIP#229 implementationdkf2005-05-301-1/+4
|
* TIP#182 IMPLEMENTATION [Patch 1165062]dgp2005-05-251-1/+25
| | | | | | | * doc/mathfunc.n: New built-in math function bool(). * generic/tclBasic.c: * tests/expr.test: * tests/info.test:
* Fixed a bug in expr round(x) function: returned an empty string if x was an ↵chengyemao2005-05-221-1/+2
| | | | integer
* Scratch one bizarre while loop... :^)dkf2005-05-191-66/+61
|
* * generic/tclBasic.c (Tcl_ExprBoolean): Rewrite as wrapper arounddgp2005-05-181-23/+13
| | | | | | | | | | | | | | | | Tcl_ExprBooleanObj. * generic/tclCmdMZ.c ([string is boolean/true/false]): Rewrite dropping string-based Tcl_GetBoolean call, so that internal reps are kept for subsequent quick boolean operations. * generic/tclExecute.c: Dropped most special handling of the "boolean" Tcl_ObjType, since that type should now be rarely encountered. * doc/BoolObj.3: Rewrite of documentation dropping many details about the internals of Tcl_Objs. Shorter documentation focuses on the function and use of the routines.
* whitespace/style policingdkf2005-05-141-561/+515
|
* * generic/tclBasic.c: Dropped the TCL_NO_MATH configuration.dgp2005-05-131-13/+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].
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-124/+1071
|