summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| |
* | * generic/tclInt.decls: Converted TclMatchIsTrivial to a macro.dgp2005-05-051-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: * generic/tclUtil.c: * generic/tclIntDecls.h: `make genstubs` * generic/tclStubInit.c: * generic/tclBasic.c: Added callers of TclMatchIsTrivial where * generic/tclCmdIL.c: a search can be done more efficiently * generic/tclCompCmds.c:when it is recognized that a pattern match * generic/tclDictObj.c: is really an exact match. [Patch 1076088] * generic/tclIO.c: * generic/tclNamesp.c: * generic/tclVar.c:
* | * doc/DString.3: Eliminated use of identifier "string" in Tcl'sdgp2005-05-031-23/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Environment.3: public C API to avoid conflict/confusion with * doc/Eval.3: the std::string of C++. * doc/ExprLong.3, doc/ExprLongObj.3, doc/GetInt.3, doc/GetOpnFl.3: * doc/ParseCmd.3, doc/RegExp.3, doc/SetResult.3, doc/StrMatch.3: * doc/Utf.3, generic/tcl.decls, generic/tclBasic.c, generic/tclEnv.c: * generic/tclGet.c, generic/tclParse.c, generic/tclParseExpr.c: * generic/tclRegexp.c, generic/tclResult.c, generic/tclUtf.c: * generic/tclUtil.c, unix/tclUnixChan.c: * generic/tclDecls.h: `make genstubs`
* | * generic/tcl.decls:dgp2005-05-021-52/+19
| | | | | | | | | | | | | | * generic/tclBasic.c: Simplified implementation of Tcl_ExprString. * tests/expr-old.test: * generic/tclDecls.h: `make gentstubs`
* | The 2005-04-21 changes to Tcl_GetBooleanFromObj were done to bringdgp2005-04-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | it into agreement with its docs. Further investigation reveals it was the docs that were incorrect. * doc/BoolObj.3: Corrections to the documentation of Tcl_GetBooleanFromObj to bring it into agreement with what this public interface has always done, including noting the difference in function between Tcl_GetBooleanFromObj and Tcl_GetBoolean. * generic/tclGet.c: Revised Tcl_GetBoolean to no longer be a wrapper around Tcl_GetBooleanFromObj (different function!). * generic/tclObj.c: Removed TclGetTruthValueFromObj routine that was added yesterday. Revisions so that only Tcl_GetBoolean-approved values get the "boolean" Tcl_ObjType. This retains the fix for [Bug 1187123]. * generic/tclInt.h: Revert most recent change. * generic/tclBasic.c: * generic/tclCompCmds.c: * generic/tclDictObj.c: * generic/tclExecute.c: * tests/obj.test:
* | * generic/tclBasic.c: Updated callers to call new routine.dgp2005-04-211-22/+3
| | | | | | | | * generic/tclCompCmds.c: Updated callers to call new routine.
* | * generic/tclBasic.c: Added unsupported commanddgp2005-04-191-1/+5
| | | | | | | | | | | | | | | | * generic/tclCmdAH.c: [::tcl::unsupported::EncodingDirs] to permit * generic/tclInt.h: query/set of the encoding search path at * generic/tclInterp.c: the script level. Updated init.tcl to make * library/init.tcl: use of the new command. Also updated several coding practices in init.tcl ("eq" for [string equal], etc.)
* | * generic/tclBasic.c (TclObjInvoke): Plug memory leak. [Bug 1180368]dgp2005-04-101-1/+2
| |
* | Changed the internal representation of lists to (a) reduce the malloc/freeMiguel Sofer2005-04-021-16/+21
| | | | | | | | | | | | | | | | calls at list creation (from 2 to 1), (b) reduce the cost of handling empty lists (we now never create a list internal rep for them), (c) allow refcounting of the list internal rep. The latter permits insuring that the pointers returned by Tcl_ListObjGetElements remain valid even if the object shimmers away from its original list type. This is [Patch 1158008]
* | * generic/tclBasic.c (Tcl_EvalEx): Restored recursion limitdgp2005-03-181-12/+11
| | | | | | | | | | | | | | | | * generic/tclParse.c (TclSubstTokens): testing in nested command * tests/basic.test (basic-46.4): substitutions within direct * tests/parse.test (parse-19.*): script evaluation (Tcl_EvalEx) that got lost in the parser reforms of Tcl 8.1. Added tests for correct behavior. [Bug 1115904]
* | * generic/tclBasic.c (Tcl_EvalObjEx):Miguel Sofer2005-02-101-5/+21
| | | | | | | | | | | | * tests/basic.test (basic-26.2): preserve the arguments passed to TEOV in the pure-list branch, in case the list shimmers away. Fix for [Bug 1119369], reported by Peter MacDonald.
* | * generic/tclBasic.c (Tcl_ExprBoolean, Tcl_ExprDouble)hobbs2005-01-281-4/+46
| | | | | | | | (Tcl_ExprLong): Fix to recognize Tcl_WideInt type. [Bug 1109484]
* | * generic/tclThread.c: Typo police. Fixed some nitsandreas_kupries2005-01-211-2/+2
| | | | | | | | | | | | * generic/tclCmdAH.c: in header comments of functions. * generic/tclBasic.c: (Missing --). * generic/tclFileName.c:
* | TIP#235 implementation (rename functions, add to stubs table, document)dkf2005-01-191-2/+2
| | | | | | | | Ensembles now have a C API. :^)
* | * generic/tclTest.c: Added two new functions to allocate memoryMiguel Sofer2004-12-151-4/+4
| | | | | | | | | | | | | | | | | | | | from the execution stack (TclStackAlloc, TclStackFree). Added functions TclPushStackFrame and TclPopStackFrame that do the work of Tcl_PushCallFrame and Tcl_PopCallFrame, but using frames allocated in the execution stack - i.e., heap instead of C-stack. The core uses these two new functions exclusively; the old ones remain for backwards compat, as at least two popular extensions (itcl, xotcl) are known to use them.