summaryrefslogtreecommitdiffstats
path: root/generic/tclBasic.c
Commit message (Collapse)AuthorAgeFilesLines
* Minor fixes (clearer panic messages, formatting of comments)dkf2008-07-181-55/+50
|
* * generic/tclDictObj.c (DictWithCmd, DictUpdateCmd): fixMiguel Sofer2008-07-181-16/+15
| | | | | | | refcounting bugs that caused crashes [Bug 2017857]. * generic/tclBasic.c (TclNREvalObjEx): streamline the management of the command frame (opt).
* Fix [Bug 2018603]dkf2008-07-151-33/+24
|
* Tidy up code for clarity.dkf2008-07-141-388/+382
|
* Store ClientDatas in NRE callback storage as an array; that's how they aredkf2008-07-141-7/+7
| | | | referred to in callback implementations anyway.
* * generic/tclBasic.c.: Embedded Tcl_Canceled() calls intoMiguel Sofer2008-07-141-9/+5
| | | | | * generic/tclExecute.c: TclInterpReady(). * generic/tclParse.c:
* * generic/tclBasic.c.: NRE left too many calls toMiguel Sofer2008-07-141-4/+1
| | | | | | * generic/tclExecute.c: TclResetCancellation lying around: it * generic/tclProc.c: only needs to be called prior to any iPtr->numLevels++. Thanks mistachkin.
* * generic/tclBasic.c: TclResetCancellation() calls were misplacedMiguel Sofer2008-07-131-6/+3
| | | | (merge mishap); stray //. Thanks patthoyts.
* whitespacedas2008-07-131-174/+174
|
* remove leftover DTRACE macro causing buid failuredas2008-07-131-5/+1
|
* NRE implementation [Patch 2017110]Miguel Sofer2008-07-131-576/+1304
|
* fix warningdas2008-06-131-2/+2
|
* TIP 285 ImplementationJoe Mistachkin2008-06-131-5/+445
|
* * generic/tclBasic.c: Compilation of uplevel scripts, allowMiguel Sofer2008-06-081-74/+74
| | | | | | | | | * generic/tclCompCmds.c: non-body compiled scripts to access the * generic/tclCompile.c: LVT (but not to extend it) and enable the * generic/tclCompile.h: canonical list opt to sidestep the * generic/tclExecute.c: compiler. This is [Patch 1973096] * generic/tclProc.c: * tests/uplevel.test:
* Make things build (cleanly) on Win32. Thanks to Joe Mistachkin. [Patch 1980861]dkf2008-05-311-1/+2
|
* Implementation of TIP #257. Incomplete due to missing Win build support.dkf2008-05-311-1/+5
|
* Converted the [binary] command into an ensemble.patthoyts2008-05-021-5/+5
|
* * generic/tclInt.h: make stubs tables 'static const' anddas2008-04-161-4/+5
| | | | | | | | * generic/tclStubInit.c: export only module-scope pointers to * generic/tclStubLib.c: the main stubs tables (for package * tools/genStubs.tcl: initialization). [Patch 1938497] * generic/tclBasic.c (Tcl_CreateInterp): * generic/tclTomMathInterface.c (TclTommath_Init):
* * README: Bump version number to 8.6a0dgp2008-04-011-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tcl.h: * library/init.tcl: * macosx/Tcl-Common.xcconfig: * macosx/Tcl.pbproj/default.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: * tools/tcl.wse.in: * unix/configure.in: * unix/tcl.spec: * win/README: * win/configure.in: * win/makefile.bc: * win/tcl.m4: * unix/configure: autoconf-2.59 * win/configure: * generic/tclBasic.c: Revised stubs-generation tool and interp * tools/genStubs.tcl: creation so that "tclStubsPtr" is not present * unix/Makefile.in: in libtcl.so, but is present only in libtclstub.a. This tightens up the rules for users of the stubs interfaces. [Bug 1819422] * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclPlatDecls.h: * generic/tclTomMathDecls.h:
* * generic/tclBasic.c (OldMathFuncProc): Same workaround protectiondgp2008-03-141-7/+6
| | | | from bad TclStackAlloc() alignment. Thanks George Peter Staplin.
* * generic/tclBasic.c (ExprAbsFunc): Revised so that the abs()dgp2008-03-101-3/+3
| | | | | | * tests/expr.test: function and the [::tcl::mathfunc::abs] command do not return the value of -0, or equivalent values with more alarming string reps like -1e-350. [Bug 1893815].
* * generic/tclBasic.c (Tcl_AppendObjToErrorInfo): Revised thedgp2008-02-291-1/+2
| | | | | | | | | | refcount management of Tcl_AppendObjToErrorInfo to become that of a conventional Consumer routine. This preserves the ease of use for the overwhelming common callers who pass in a 0-count value, but makes the proper call with a non-0-count value less surprising. * generic/tclEvent.c (TclDefaultBgErrorHandlerObjCmd): Revised the one caller within Tcl itself which passes a non-0-count value to Tcl_AppendObjToErrorInfo().
* * generic/tclBasic.c (TclEvalObjvInternal): Plug memory leak whendgp2008-02-281-1/+4
| | | | | | an enter trace deletes or changes the command, prompting a reparsing. Don't let the second pass lose commandPtr value allocated during the first pass.
* Reconcile coding style issues between branchesdgp2008-01-231-5/+4
|
* * generic/tclBasic.c: Replacing 'operator' by 'op' in the defMiguel Sofer2008-01-151-2/+2
| | | | | * generic/tclCompExpr.c: of struct TclOpCmdClientData to * generic/tclCompile.h: accomodate C++ compilers [Bug 1855644]
* merge stable branch onto HEADdgp2007-12-131-1/+1
|
* Match docs and reality. [Bug 1662436]dkf2007-12-081-2/+2
|
* Simplify code for setting up the [chan] ensemble now that we can leveragedkf2007-12-061-333/+313
| | | | TclMakeEnsemble to do most of the work.
* * generic/tclBasic.c: remove unneeded call in Tcl_CreateInterp,Miguel Sofer2007-11-281-8/+6
| | | | add comments
* * generic/tclBasic.c:Miguel Sofer2007-11-261-1/+8
| | | | | | | | | * generic/tclInt.h: * unix/tclUnixInit.c: * unix/tclUnixThrd.c: Fix stack checking via workaround for bug in glibc's pthread_attr_get_np, patch from [Bug 1815573]. Many thanks to Sergei Golovan (aka Teo) for detecting the bug and helping diagnose and develop the fix.
* Remove #ifdef out accidentally left indkf2007-11-231-4/+1
|
* Turn the [string] command into a real compiled ensemble.dkf2007-11-231-5/+12
|
* Rebuild [dict] as a full compiled ensemble.dkf2007-11-221-2/+2
|
* RE: [Patch 1830184] TclResetResultMiguel Sofer2007-11-121-3/+2
| | | | | | THIS PATCH WAS REVERTED: initial (mis)measurements overstated the perfomance wins, which turn out to be tiny. Not worth the complication.
* * generic/tclBasic.c: New macro TclResetResult, new iPtr flagMiguel Sofer2007-11-121-2/+3
| | | | | | | | | * generic/tclExecute.c: bit INTERP_RESULT_UNCLEAN: shortcut for * generic/tclInt.h: Tcl_ResetResult for the "normal" case: * generic/tclProc.c: TCL_OK, no return options, no errorCode * generic/tclResult.c: nor errorInfo, return at normal level. * generic/tclStubLib.c: [Patch 1830184] * generic/tclUtil.c:
* [Patch 1830038]: Increased usage of macros to detect and take advantage of ↵Miguel Sofer2007-11-111-12/+12
| | | | objTypes.
* * generic/tclBasic.c: fix stack check failure case if stack grows up.das2007-11-111-2/+2
|
* * generic/tclBasic.c: fix stack check failure case if stack grows up.das2007-11-111-2/+2
|
* * generic/tclBasic.c:Miguel Sofer2007-11-101-8/+19
| | | | | | * unix/configure.in: * unix/tclUnixInit.c: detect stack grwoth direction at compile time, only fall to runtime detection when crosscompiling.
* Improved failure comments for stack checks (mistachkin).Miguel Sofer2007-11-101-10/+15
|
* * generic/tclBasic.c:Miguel Sofer2007-11-101-18/+9
| | | | | | | | | * generic/tclInt.h: * unix/tclUnixInit.c: * win/tclWin32Dll.c: restore simpler behaviour for stack checking, not adaptive to stack size changes after a thread is launched. Consensus is that "nobody does that", and so it is not worth the cost.
* * generic/tclBasic.c:Miguel Sofer2007-11-101-24/+20
| | | | | | | | | | | * generic/tclInt.h: * unix/tclUnixInit.c: * unix/tclUnixPort.h: * win/tclWin32Dll.c: modify the stack checking algorithm to recheck in case of failure. The working assumptions are now that (a) a thread's stack is never moved, and (b) a thread's stack can grow but not shrink. Port to windows - could be more efficient, but is already cheaper than it was.
* fix typos, formatting and non-unix breakage (due to undefined stackGrowsDown)das2007-11-101-6/+7
|
* * generic/tclAsync.c:Miguel Sofer2007-11-091-4/+49
| | | | | | | | | | | * generic/tclBasic.c: * generic/tclExecute.c: * generic/tclInt.h: * generic/tclUnixInit.c: * generic/tclUnixPort.h: new fields in interp (ekeko!) to cache TSD data that is accessed at each command invocation, access macros to replace Tcl_AsyncReady and TclpCheckStackSpace by much faster variants [Patch 1829248]
* Add a new command, ::tcl::unsupported::disassembledkf2007-09-251-5/+12
|
* Only invalidate the namespace path once on command creation. [1519940]dkf2007-09-141-2/+1
|
* * generic/tclDTrace.d (new file): add DTrace provider for Tcl; allowsdas2007-09-131-1/+141
| | | | | | | | | | | | | | | | | | * generic/tclCompile.h: tracing of proc and command entry & * generic/tclBasic.c: return, bytecode execution, object * generic/tclExecute.c: allocation and more; with essentially * generic/tclInt.h: zero cost when tracing is inactive; * generic/tclObj.c: enable with --enable-dtrace configure * generic/tclProc.c: arg (disabled by default, will only * unix/Makefile.in: enable if DTrace is present). * unix/configure.in: [Patch 1793984] * macosx/GNUmakefile: enable DTrace support. * macosx/Tcl-Common.xcconfig: * macosx/Tcl.xcodeproj/project.pbxproj: * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* * generic/tclBasic.c: Removed support for the unmaintaineddgp2007-09-051-8/+1
| | | | | * generic/tclExecute.c: -DTCL_GENERIC_ONLY configuration. [Bug 1264623] * unix/Makefile.in:
* * generic/tclBasic.c: Used unions to better clarify overloading ofdgp2007-08-281-27/+54
| | | | | * generic/tclCompExpr.c: the fields of the OpCmdInfo and * generic/tclCompile.h: TclOpCmdClientData structs.
* * generic/tclBasic.c: Use fully qualified variable names fordgp2007-08-141-3/+3
| | | | | | * tests/thread.test: ::errorInfo and ::errorCode so that string * tests/trace.test: reported to variable traces are fully qualified in agreement with Tcl 8.4 operations.