summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed the calculation of the maximal stack depth required by bytecodes [Bug ↵Miguel Sofer2001-12-101-5/+5
| | | | 483611].
* Replace isspace(char) with isspace(UCHAR(char)) for safety...dkf2001-11-271-2/+2
|
* restoring the computations of iPtr->numLevels to the original logic ↵Miguel Sofer2001-11-201-10/+1
| | | | (previous to buggy modifs on 2001-11-16).
* Code reordering; execution levels made consistent [Bug 480896].Miguel Sofer2001-11-161-1/+10
|
* Doh ... strncmp, not strcmp needed in last commit.Miguel Sofer2001-10-151-2/+2
|
* generic/tclProc.c: changing a memcmp to strcmp to avoid a memory errorMiguel Sofer2001-10-151-33/+32
| | | | | detected by purify (thanks Jeff); modify style to agrre with the style guide.
* * Updated APIs indgp2001-09-271-3/+3
| | | | | generic/tclProc.c and generic/tclVar.c according to the guidelines of TIP 27. [Patch 465442]
* Disabled all compile and execution tracing functionality in standardMiguel Sofer2001-09-171-5/+5
| | | | builds [Bug 451858].
* Bytecompiling noops [FQ #451441]Miguel Sofer2001-09-101-1/+105
|
* made [proc] check that formal args have simple names [Bug: 458548]Miguel Sofer2001-09-041-1/+9
|
* Added several missing CONSTs in calls to TclGetNamespaceForQualNameKevin B Kenny2001-04-271-3/+4
|
* * tests/compile.test:hobbs2000-05-031-10/+23
| | | | | | | | | | * tests/init.test: * tests/proc.test: * tests/proc-old.test: * tests/rename.test: * generic/tclProc.c: reworked error return for procedures with incorrect args to be like the C Tcl_WrongNumArgs, where a "wrong # args: ..." message is printed out with the args list.
* * tests/var.test:hobbs1999-12-121-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCompile.c: fixed problem where setting to {} array would intermittently not work. (Fontaine) [Bug: 3339] * generic/tclCmdMZ.c: * generic/tclExecute.c: optimized INST_TRY_CVT_TO_NUMERIC to recognize boolean objects. (Spjuth) [Bug: 2815] * tests/info.test: * tests/parseOld.test: * generic/tclCmdAH.c: * generic/tclProc.c: changed Tcl_UplevelObjCmd (uplevel) and Tcl_EvalObjCmd (eval) to use TCL_EVAL_DIRECT in the single arg case as well, to take advantage of potential pure list input optimization. This means that it won't get byte compiled though, which should be acceptable. * generic/tclBasic.c: made Tcl_EvalObjEx pure list object aware in the TCL_EVAL_DIRECT case for efficiency. * generic/tclUtil.c: made Tcl_ConcatObj pure list object aware, and return a list object in that case [Bug: 2098 2257] * generic/tclMain.c: changed Tcl_Main to not constantly reuse the commandPtr object (interactive case) as it could be shared. (Fellows)
* * generic/tclProc.c: backed out change from 1999-11-18 as ithobbs1999-11-191-4/+4
| | | | could affect return string from upvar as well.
* * generic/tclProc.c: corrected error reporting for default casehobbs1999-11-191-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | at the global level for uplevel command. * generic/tclIOSock.c: changed int to size_t type for len in TclSockMinimumBuffers. * generic/tclCkalloc.c: fixed Tcl_DbCkfree to return a value on NULL input. [Bug: 3400] * generic/tclStringObj.c: fixed support for passing in negative length to Tcl_SetUnicodeObj, et al handling routines. [Bug: 3380] * doc/scan.n: * tests/scan.test: * generic/tclScan.c: finished support for inline scan by supporting XPG identifiers. * doc/http.n: * library/http2.1/http.tcl: added register and unregister commands to http:: package (better support for tls/SSL), as well as -type argument to http::geturl. [RFE: 2617] * generic/tclBasic.c: removed extra decr of numLevels in Tcl_EvalObjEx that could cause seg fault. (mjansen@wendt.de) * generic/tclEvent.c: fixed possible lack of MutexUnlock in Tcl_DeleteExitHandler [Bug: 3545]
* 1999-09-01 Jeff Hobbs <hobbs@scriptics.com>hobbs1999-09-021-8/+17
| | | | | | | | | | | | | * generic/tclParseExpr.c: changed '"' to '\"' to make FreeBSD happy [Bug: 2625] * generic/tclProc.c: moved static buf to better location and changed static msg that would overflow in ProcessProcResultCode [Bug: 2483] and added Tcl_DStringFree to Tcl_ProcObjCmd. Also reworked size of static buffers. * tests/stringObj.test: added test 9.11 * generic/tclStringObj.c: changed Tcl_AppendObjToObj to properly handle the 1-byte dest and mixed src case where both had had Unicode string len checks made on them. [Bug: 2678]
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-76/+109
|
* Merged stubs changes into mainline for 8.0stanton1999-03-101-2/+2
|
* * generic/tclProc.c:stanton1999-02-031-8/+4
| | | | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: * generic/tclInt.h: * generic/tclCmdIL.c: * generic/tclBasic.c: * generic/tclVar.c: Applied patch from Viktor Dukhovni to rationalize TCL_LEAVE_ERR_MSG behavior when creating variables. * generic/tclVar.c: Fixed bug in namespace tail computation. Fixed bug where upvar could resurrect a namespace variable whose namespace had been deleted. * generic/tclCompile.c (TclCompileExprCmd): Eliminated yet another bogus optimization in expression compilation. * generic/tclCompile.c (CompileExprWord): Fixed exception stack overflow bug caused by missing statement. [Bug: 928] * generic/tclIOCmd.c: * generic/tclBasic.c: Objectified the "open" command. [Bug: 1113]
* Added a new Tcl object called "procbody"; this object's internalescoffon1998-10-051-117/+389
| | | | | | | representation contains both a Proc struct and its associated ByteCode. Updated tclProc.c::TclCreateProc to take procbody instances as the body argument, for future support of compiler extensions. Added the "procbodytest" package for testing all this stuff.
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* changed resolver epoch so it only invalidates the resolver cachestanton1998-08-071-60/+39
| | | | | | rather than forcing a complete recompile of the byte codes changed to use TclInitCompiledLocals changed resolver api to be a bit more object oriented
* changed the panic in TclProcCompileProc when a precompiled script jumpsescoffon1998-08-061-2/+4
| | | | interps to an error instead.
* Created a couple of procedures to export internal procs out of a DLL;escoffon1998-07-281-1/+51
| | | | | | this is needed to support precompiled procedure bodies and the info body command (without them one gets "not a procedure: xxxx" for all precompiled procedure bodies if Tcl is in a DLL)
* basically reapplied the changes for rev 1.7, modified to match the itcl 3.0escoffon1998-07-241-13/+25
| | | | merges
* Updated core w/ Micheals latest changes.surles1998-07-241-80/+141
|
* Removed unreferenced varssurles1998-07-211-6/+4
|
* Merged changes between child workspace "/home/welch/ws/tcl8.0.3i" andwelch1998-07-201-40/+138
| | | | parent workspace "/home/welch/ws/tcl8.0.3".
* Added check for precompiled ByteCodes, to avoid recompilation if the epochescoffon1998-07-151-3/+13
| | | | has changed in the interpreter. Instead, reset the epoch in the ByteCode.
* rolled back the check for compiled procs in Tcl_ProcObjCmd, do the unsharingescoffon1998-07-141-14/+1
| | | | | even for compiled procs. This will cause an error to be triggered the first time the proc is called (because the source is just an error statement)
* replaced the SCCS id string with %% keywordsescoffon1998-07-061-1/+1
|
* Exported {TclProc}CleanupProc, {Tcl}ProcDeleteProc, and {TclProc}InterpProc,escoffon1998-07-061-24/+16
| | | | for use by the TclPro compiler.
* changed TclFindProc & TclIsProc to understand aliased commandsrjohnson1998-07-011-2/+14
|
* turn off check for shared source string in Tcl_ProcObjCmd if the bodyescoffon1998-06-101-2/+15
| | | | is a PRECOMPILED ByteCode object.
* Initial revisionrjohnson1998-03-261-0/+1042