summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclIOUtil.c: workaround gcc warning "comparison is alwaysdas2005-12-152-2/+24
| | | | * generic/tclTest.c: false due to limited range of data type".
* * 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-1323-838/+2139
|
* Fix [Bug 1379349]dkf2005-12-131-4/+7
|
* change "procedure" to "function" for (slightly) greater claritydkf2005-12-121-8/+8
|
* Fix [Bug 1374778]dkf2005-12-091-4/+18
|
* * win/Makefile.in, win/makefile.vc: Add Win x64 and CE build supporthobbs2005-12-081-15/+4
| | | | * win/tcl.m4, win/configure: CE still requires C code fixes.
* * generic/tcl.h: use struct __stat64 (not _stat64) for MSC_VER >=hobbs2005-12-081-2/+2
| | | | 1400 (i.e. latest Platform SDK).
* another puny speedup - no error thrown from ::tcl::clock::getenvKevin B Kenny2005-12-021-7/+4
|
* Slightly better style (no _ANSI_ARGS_ even in comments, use void instead of ↵dkf2005-12-011-13/+13
| | | | VOID)
* * generic/tclClock.c: fix warning.das2005-12-011-3/+7
|
* code rationalization - eliminate some duplication between Tcl and CKevin B Kenny2005-11-301-3/+191
|
* fix [clock format -timezone :localtime] for times before the Posix EpochKevin B Kenny2005-11-301-4/+9
|
* silenced compiler warning about big constantKevin B Kenny2005-11-301-2/+4
|
* New TEBC opcode, INST_JUMP_TABLE, for compiling the simple (and common) case ofdkf2005-11-304-26/+314
| | | | | [switch] into a jump-table. Much faster for long switches. Also compiler support for generating the new instruction where appropriate.
* fixed bad refcount that corrupted heapKevin B Kenny2005-11-301-1/+2
|
* make [clock format] go fasterKevin B Kenny2005-11-293-230/+1216
|
* Fix [Bug 1366683]dkf2005-11-291-3/+17
|
* * unix/tcl.m4 (Darwin): add 64bit support, check for Tiger copyfile(),das2005-11-2723-166/+230
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | add CFLAGS to SHLIB_LD to support passing -isysroot in env(CFLAGS) to configure (flag can't be present twice, so can't be in both CFLAGS and LDFLAGS during configure), don't use -prebind when deploying on 10.4, define TCL_IO_TRACK_OS_FOR_DRIVER_WITH_BAD_BLOCKING (rdar://3171542). (SC_ENABLE_LANGINFO, SC_TIME_HANDLER): add/fix caching, fix obsolete autoconf macros. Sync with tk/unix/tcl.m4. * unix/configure.in: fix obsolete autoconf macros, sync gratuitous formatting/ordering differences with tk/unix/configure.in. * unix/Makefile.in: add CFLAGS to tclsh/tcltest link to make executable linking the same as during configure (needed to avoid loosing any linker relevant flags in CFLAGS, in particular flags that can't be in LDFLAGS). Avoid concurrent linking of tclsh and compiling of tclTestInit.o or xtTestInit.o during parallel make. (checkstubs, checkdoc, checkexports): dependency and Darwin fixes (dist): add new macosx files. * unix/tclLoadDyld.c (TclpDlopen): use NSADDIMAGE_OPTION_WITH_SEARCHING on second NSAddImage only. [Bug 1204237] (TclGuessPackageName): should not be MODULE_SCOPE. (TclpLoadMemory): ppc64 and endian (i386) fixes, add support for loading universal (fat) bundles from memory. * unix/tclUnixFCmd.c: * macosx/tclMacOSXFCmd.c: ppc64 and endian (i386) fixes. (TclMacOSXCopyFileAttributes): add support for new Tiger copyfile() API to enable copying of xattrs & ACLs by [file copy]. * generic/tcl.h: add Darwin specifc configure overrides for TCL_WIDE defines to support fat compiles of ppc and ppc64 at the same time, (replaces Darwin CVS fix by emoy, rdar://3693001). add/correct location of version numbers in macosx files. * generic/tclInt.h: clarify fat compile comment. * unix/tclUnixPort.h: add Darwin specifc configure overrides to support fat compiles, where configure runs only once for multiple architectures (replaces Darwin CVS fix by emoy, rdar://3693001). * macosx/tclMacOSXBundle.c: * macosx/tclMacOSXNotify.c: * unix/tclUnixNotfy.c: * unix/tclUnixPort.h: fix #include order to support compile time override of HAVE_COREFOUNDATION in tclUnixPort.h when building for ppc64 * macosx/Tcl.pbproj/default.pbxuser (new file): * macosx/Tcl.pbproj/jingham.pbxuser: * macosx/Tcl.pbproj/project.pbxproj: * macosx/Tcl.xcode/default.pbxuser (new file): * macosx/Tcl.xcode/project.pbxproj (new file): * macosx/Tcl.xcodeproj/default.pbxuser (new file): * macosx/Tcl.xcodeproj/project.pbxproj (new file): new/updated projects for Xcode 2.2 on 10.4, Xcode 1.5 on 10.3 & ProjectBuilder on 10.2, with native tcltest targets and support for universal (fat) compiles. * macosx/README: clarification/cleanup, document new Xcode projects and universal (fat) builds via CFLAGS (i.e. all of ppc ppc64 i386 at once). * unix/Makefile.in: * unix/aclocal.m4: * unix/configure.in: * unix/dltest/Makefile.in: * macosx/configure.ac (new file): add support for inclusion of unix/configure.in by macosx/configure.ac, allows generation of a config headers enabled configure script in macosx (required by Xcode projects). * macosx/GNUmakefile: rename from Makefile to avoid overwriting by configure run in tcl/macosx, add support for reusing configure cache, build target fixes, remove GENERIC_FLAGS override now handled by tcl.m4. * generic/tcl.decls: add Tcl_Main declaration as comment to avoid 'checkstubs' target complaining about it missing from stubs. * generic/regex.h: * generic/tclDate.c: * generic/tclEnv.c: * generic/tclGetDate.y: * generic/tclIOUtil.c: * generic/tclObj.c: * generic/tclStubInit.c: * generic/tclStubLib.c: * generic/tclPathObj.c: * generic/tclThreadAlloc.c: * generic/tclThreadStorage.c: * generic/tclTrace.c: * generic/tclVar.c: * generic/tommath.h: * tools/fix_tommath_h.tcl: * unix/tclUnixFCmd.c: ensure externally visible symbols not contained in stubs table are declared as MODULE_SCOPE (or as static if not used outside of own source file). These changes allow 'make checkstubs' to complete without error on Darwin with gcc 4. * generic/rege_dfa.c (getvacant): * generic/regexec.c (cfind): * generic/tclCompExpr.c (CompileSubExpr): * generic/tclNamesp.c (NamespaceEnsembleCmd): * unix/tclUnixChan.c (TclUnixWaitForFile): initialise variables to silence gcc 4 warnings. * generic/tclExecute.c (TclExecuteByteCode): fix unused variable warning when NO_WIDE_TYPE is defined. * generic/regguts.h: only #define NDEBUG if not already #defined. * unix/tclUnixNotfy.c: * macosx/tclMacOSXNotify.c: sync whitespace & comments. * unix/tclUnixPort.h: * win/tclWinPort.h: remove declaration of obsolete&unused TclpMutex API. * unix/configure: * unix/tclConfig.h.in: regen.
* Don't set tclStubsPtr to 0 when Tcl_PkgRequireEx() failsjenglish2005-11-201-24/+4
| | | | [Fix for #1091431 "Tcl_InitStubs failure crashes wish"]
* * generic/tclIO.c (TclFinalizeIOSubsystem): preserve statePtrhobbs2005-11-181-5/+10
| | | | until we netrieve next statePtr from it.
* * generic/tclObj.c (GetBignumFromObj): replace NULL withMiguel Sofer2005-11-181-2/+2
| | | | | | tclEmptyStringRep to stop memcpy from complaining in a debug build (the corresponding branch is eliminated by the optimiser otherwise).
* * generic/tclIO.c (TclFinalizeIOSubsystem): Applied Pat Thoyts'andreas_kupries2005-11-181-2/+6
| | | | | | | patch for [SF Tcl Bug 1359094]. This moves the retrieval of the next channel state to the end of the loop, as the called closeproc may close other channels, i.e. modify the list we are iterating, invalidating any pointer retrieved earlier.
* * generic/tclListObj.c: Restored the SetListFromAny routine todgp2005-11-182-3/+4
| | | | | | | * generic/tclObj.c: the "list" Tcl_ObjType, and restored the Tcl_RegisterObjType() call for "list". This addresses the needs of some "bridge" extensions to examine whether the Tcl_ObjType of a Tcl_Obj is that of the "list" Tcl_ObjType.
* * generic/tclStrToD.c: More data in the "can't happen" Tcl_Panicdgp2005-11-141-2/+3
| | | | to aid debugging.
* * generic/tclBasic.c (CallCommandTraces): Save/restore thedgp2005-11-141-1/+9
| | | | interp result during traces to fix [Bug 1355342].
* * generic/tclInt.h:Miguel Sofer2005-11-142-6/+14
| | | | | | | | | * generic/tclNamesp.c: * tests/namespace.test: fix for bugs #1354540 and #1355942. The new tests 7.3-6 and the modified 51.13 fail due to the unrelated [Bug 1355342] * tests/trace.test: added tests 20.13-16 for [Bug 1355342]
* fixing last commit, no Changelog entryMiguel Sofer2005-11-131-3/+9
|
* * generic/tclBasic.c (Tcl_DeleteCommandFromToken):Miguel Sofer2005-11-132-11/+5
| | | | | | * 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.
* Partial fix for [Bug 1355342]dkf2005-11-121-350/+350
| | | | Also ANSIfy the rest of the file
* * generic/tclInt.h: Revised TclParseNumber interface to enabledgp2005-11-123-125/+166
| | | | | | * generic/tclScan.c: revision to the [scan] command implementation * generic/tclStrToD.c: to permit tests scan-4.44,55 to pass again. [Bug 1348067].
* 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
* More bits of ANSIfyingdkf2005-11-112-163/+180
|
* * generic/tclBasic.c (Tcl_DeleteCommandFromToken):Miguel Sofer2005-11-112-10/+11
| | | | | | | | | * 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])
* Finish applying the style guide to the RE engine (except for variable anddkf2005-11-105-1472/+1817
| | | | function names, which are a much bigger job to fix!)
* Deleted unwanted extra space at end of some linesdkf2005-11-101-5/+5
|
* bugs 1350291 and 1350293Kevin B Kenny2005-11-091-57/+79
|
* ANSIfy the RE compiler.dkf2005-11-098-4852/+5523
|
* More ANSIfyingdkf2005-11-091-25/+25
|
* * generic/tclPkg.c: Corrected inconsistencies in the value returneddgp2005-11-081-14/+83
| | | | | | | * tests/pkg.test: by Tcl_PkgRequire(Ex) so that the returned values will always agree with what is stored in the package database. This way repeated calls to Tcl_PkgRequire(Ex) have the same results. Thanks to Hemang Lavana. [Bug 1162286].
* Fix for [Bug 1348775]dkf2005-11-081-32/+84
|
* ANSIfydkf2005-11-071-7/+9
|
* Strip a few more pre-ANSI-ismsdkf2005-11-071-21/+20
|
* ANSIfydkf2005-11-077-90/+89
|
* Tidy updkf2005-11-071-41/+47
|
* Silence a warning.dkf2005-11-071-2/+3
|
* * win/tclWinPort.h: Applied patch #1267871 by Matt Newman forpatthoyts2005-11-041-2/+2
| | | | | | * win/tclWinPipe.c: extended error code support on Windows. * tests/exec.test: Tests for extended error codes. * generic/tclPipe.c: Permit long codes (platform macros permitting).
* * generic/tclBinary.c:Miguel Sofer2005-11-0410-83/+44
| | | | | | | | | | | | | | | | * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclIOCmd.c: * generic/tclLink.c: * generic/tclTest.c: * generic/tclVar.c: fix for [Bug 1334947]. The functions TclPtrSetVar, Tcl_ObjSetVar2 and Tcl_SetVar2Ex now always consume the newValuePtr argument - i.e., they will free a 0-refCount object if they failed to set the variable. Fixed all callers in the core.
* Bug 1298737Kevin B Kenny2005-11-042-46/+56
|