summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* bug 1225727Kevin B Kenny2005-06-223-4/+20
|
* * generic/tclInt.h: Followup to change made on 2005-06-18 byandreas_kupries2005-06-211-1/+2
| | | | | | | Daniel Steffen. There are compilers (*) who error out on the redefinition of WORDS_BIGENDIAN. We have to undef the previous definition (on the command line) first to make this acceptable. (*): AIX native.
* bug 1194458Kevin B Kenny2005-06-211-8/+15
|
* * generic/tclBasic.c: Added missing walk of the list of active tracesdgp2005-06-213-7/+44
| | | | | | | * 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]
* typosdkf2005-06-202-3/+4
|
* typodkf2005-06-201-2/+2
|
* Add compilation for TIP#90-style [catch] requiring a new opcode [Bug1219112]dkf2005-06-204-494/+536
|
* Update error case handling following Mo's updates (which are a good thing)dkf2005-06-201-17/+22
|
* * generic/tclCmdMZ.c (Tcl_SwitchObjCmd): Generatemdejong2005-06-201-2/+15
| | | | | | | | | | | | | | | an error if a mode argument like -exact is passed more than once to the switch command. The previous implementation silently accepted invalid switch invocations like [switch -exact -glob $str ...]. * tests/for.test: Check some error cases when invoking continue and break inside a for loop next script. * tests/switch.test: Add checks for shortened version of a mode argument like -exact. Add test for more than one mode argument. Add test for odd case of passing a variable as a body script.
* * generic/tclInt.h: ensure WORDS_BIGENDIAN is defined correctly with fatdas2005-06-181-1/+26
| | | | | | | | | | | compiles on Darwin (i.e. ppc and i386 at the same time), the configure AC_C_BIGENDIAN check is not sufficient in this case because a single run of the compiler builds for two architectures with different endianness. * unix/tcl.m4 (Darwin): add -headerpad_max_install_names to LDFLAGS to ensure we can always relocate binaries with install_name_tool. * unix/configure: autoconf-2.59
* Fix bug in [format %hx] handling on selected platforms. [Bug 1154163]dkf2005-06-171-10/+17
|
* Fix an odd [after]-and-limits problem. [Bug 1221395]dkf2005-06-171-35/+71
|
* Fix [Bug 1220058] and quash a bizarre case which generated a bogus error msg.dkf2005-06-142-5/+16
| | | | Thanks to Will Duquette for helping to track this one down.
* correct fix to file mkdirvincentdarley2005-06-131-4/+7
|
* D'oh!dkf2005-06-121-2/+2
|
* Simplify command compilation by moving numerous common stanzas into macros ↵dkf2005-06-121-863/+887
| | | | | | so that things say what they do instead of relying on the code-writer knowing all the basic ropes. Also cleaned up the whitespace/style of the code
* fix to race condition in file mkdir and fix to glob documentationvincentdarley2005-06-091-3/+27
|
* * generic/tclInt.h: Reduced the Tcl_ObjTypes "index",dgp2005-06-075-30/+26
| | | | | | | * generic/tclIndexObj.c: "enembleCmd", "localVarName", and * generic/tclNamesp.c: "levelReference" to file static scope. * generic/tclProc.c: * generic/tclVar.c:
* * generic/tclObj.c: Restored registration of the "procbody"dgp2005-06-071-1/+2
| | | | Tcl_ObjType, as required by the tclcompiler application.
* Stick to TCL_CHANNEL_VERSION_4; it's all in alpha anyway!dkf2005-06-072-8/+21
|
* Bump patchlevel to a4dkf2005-06-071-3/+3
|
* Clean up tests in chan.test and add mechanism for chaining Tcl_WrongNumArgsdkf2005-06-073-7/+25
| | | | messages (used in [read] implementation)
* Add missing return TCL_ERRORdkf2005-06-071-111/+103
|
* Another indentation fixdkf2005-06-071-2/+2
|
* Clean up indentationdkf2005-06-071-9/+9
|
* Add missing return in wrong#args casedkf2005-06-071-1/+2
|
* copy/paste/modify errordgp2005-06-071-3/+2
|
* typodgp2005-06-071-2/+2
|
* make genstubsdgp2005-06-072-2/+26
|
* TIP#208 implementationdkf2005-06-066-13/+196
| | | | It's crude (especially in the tests and docs department) and incomplete (no truncation on non-POSIX platforms).
* Correct crash in stack.test on gcc/win32; fix compile errors in tclObj.c on ↵Kevin B Kenny2005-06-061-8/+8
| | | | hpux/native cc
* This close to a release, simple is better.dgp2005-06-022-4/+4
|
* * generic/tclProc.c: Revised fix for [Bug 1209759] is more complex,dgp2005-06-012-5/+5
| | | | * generic/tclResult.c: but should have less performance impact.
* * generic/tclBasic.c: For compatibility with earlier Tcl releases,dgp2005-06-013-4/+42
| | | | | | | * 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].
* Implementation of TIP#241 from Joe Mistachkindkf2005-06-013-53/+109
| | | | Also compilation of [switch -glob -nocase] from Donal Fellows
* Increase efficiency of [lindex] compilationdkf2005-06-011-3/+32
|
* TIP#229 implementationdkf2005-05-305-36/+508
|
* * generic/tclCmdMZ.c (Tcl_TimeObjCmd): add necessary casthobbs2005-05-251-2/+3
|
* 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:
* * generic/tclIOUtil.c (TclLoadFile):das2005-05-232-2/+62
| | | | | | | | | | | * generic/tclInt.h: * unix/tcl.m4: * unix/tclLoadDyld.c: added support for [load]ing .bundle binaries in addition to .dylib's: .bundle's can be [unload]ed (unlike .dylib's), and can be [load]ed from memory, e.g. directly from VFS without needing to be written out to a temporary location first. [Bug 1202209] * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59
* * generic/tclCmdMZ.c (Tcl_TimeObjCmd): change [time] called with adas2005-05-231-5/+11
| | | | | count > 1 to return a string with a float value instead of a rounded off integer. [Bug 1202178]
* Fixed a bug in expr round(x) function: returned an empty string if x was an ↵chengyemao2005-05-221-1/+2
| | | | integer
* * generic/tclParseExpr.c: Corrected parser to recognize alldgp2005-05-201-59/+36
| | | | | | boolean literals accepted by Tcl_GetBoolean, including prefixes like "y" and "f", and to allow "eq" and "ne" as function names in the proper context. [Bug 1201589].
* Quell a gcc warningdkf2005-05-191-4/+5
|
* Scratch one bizarre while loop... :^)dkf2005-05-191-66/+61
|
* * generic/tclBasic.c (Tcl_ExprBoolean): Rewrite as wrapper arounddgp2005-05-183-80/+49
| | | | | | | | | | | | | | | | 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.
* * generic/tclInt.h: Revision to the "boolean" Tcl_ObjType, sodgp2005-05-182-20/+64
| | | | | | | | | | | | * generic/tclObj.c: that only string values like "yes" and "false" * tests/obj.test: are kept as the "boolean" Tcl_ObjType. The string values "0" and "1" are kept as "int" Tcl_ObjType, which also produce quick calls to Tcl_GetBooleanFromObj(). Since this internal change means a Tcl_ConvertToType to a "boolean" Tcl_ObjType might not produce a Tcl_Obj of type "boolean", the registration of the "boolean" type is also removed. ***POTENTIAL INCOMPATIBILITY*** For callers of Tcl_GetObjType on the type name "boolean".
* * generic/tclObj.c (TclInitObjSubsystem): Removed thedgp2005-05-171-7/+1
| | | | | | | | | | | * tests/listObj.test: registration of the Tcl_ObjType's "list", * tests/obj.test: "procbody", "index", "ensembleCommand", "localVarName", and "levelReference". The only reason to register a Tcl_ObjType is to have it returned by Tcl_GetObjType, and the only reason for that is to retrieve a (Tcl_ObjType *) to pass to Tcl_ConvertToType(). None of the types above can support a Tcl_ConvertToType() call; they panic. Better not to offer something than to lead users into a panic.
* whitespace/style policingdkf2005-05-141-561/+515
|
* * generic/tclInt.decls:das2005-05-146-30/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclTest.c: * generic/tclUtil.c: * win/tclWin32Dll.c: fixed link error due to direct access by tclTest.c to the MODULE_SCOPE tclPlatform global: renamed existing TclWinGetPlatform() accessor to TclGetPlatform() and moved it to generic code so that it can be used by on all platforms where MODULE_SCOPE is enforced. * macosx/tclMacOSXBundle.c: * unix/tclUnixInit.c: * unix/tcl.m4 (Darwin): made use of CoreFoundation API configurable and added test of CoreFoundation availablility to allow building on ppc64, replaced HAVE_CFBUNDLE by HAVE_COREFOUNDATION; test for availability of Tiger or later OSSpinLockLock API. * unix/tclUnixNotfy.c: * unix/Makefile.in: * macosx/tclMacOSXNotify.c (new file): when CoreFoundation is available, use new CFRunLoop based notifier: allows easy integration with other event loops on Mac OS X, in particular the TkAqua Carbon event loop is now integrated via a standard tcl event source (instead of TkAqua upon loading having to finalize the exsting notifier and replace it with its custom version). [Patch 1202052] * tests/unixNotfy.test: don't run unthreaded tests on Darwin since notifier may be using threads even in unthreaded core. * unix/tclUnixPort.h: * unix/tcl.m4 (Darwin): test for thread-unsafe realpath durning configure, as Darwin 7 and later realpath is threadsafe. * macosx/Makefile: enable configure caching. * unix/configure.in: wrap tclConfig.h header in #ifndef _TCLCONFIG so that it can be included more than once without warnings from gcc4.0 (as happens e.g. when including both tclInt.h and tclPort.h) * macosx/tclMacOSXBundle.c: * unix/tclUnixChan.c: * unix/tclLoadDyld.c: * unix/tclUnixInit.c: fixed gcc 4.0 warnings. * unix/configure: autoconf-2.59 * unix/tclConfig.h.in: autoheader-2.59 * generic/tclIntDecls.h: * generic/tclIntPlatDecls.h: * generic/tclStubInit.c: make genstubs