summaryrefslogtreecommitdiffstats
path: root/generic/tclIOUtil.c
Commit message (Collapse)AuthorAgeFilesLines
* Ugh; convert unfortunate tab back to a spacedkf2005-07-171-2/+2
|
* Getting more systematic about styledkf2005-07-171-1561/+1663
|
* * generic/tclIOUtil.c (TclLoadFile):das2005-05-231-1/+53
| | | | | | | | | | | * 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
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
|
* TIP#183 IMPLEMENTATION [Patch 577093]dgp2005-04-271-22/+81
| | | | | | | | | * generic/tclIOUtil.c (TclGetOpenModeEx): New routine. * generic/tclInt.h: * generic/tclIO.c (Tcl_OpenObjCmd): Support for "b" and * doc/open.n: "BINARY" in "access" argument to [open]. * tests/ioCmd.test:
* Force clenaup of the interp result in TclLoadFile(). Some implementationsvasiljevic2005-04-161-5/+12
| | | | | of TclpFindSymbol() will seed the interp result with error message when unable to find the requested symbol (this is not considered to be error).
* D'oh!dkf2005-01-141-2/+2
|
* Stop reliance on absolute attribute indexes with helper function [Bug 1100671]dkf2005-01-141-4/+84
|
* * generic/tclIOUtil.c (TclFSEpochOk): There were two code pathsdgp2004-11-171-8/+2
| | | | | | | via which the thread copy of filesystemEpoch could be synched with the master copy, but only one kept the filesystem list cache up to date. Fix routes everything through a single code path. [Bug 1035775].
* * generic/tclBasic.c (Tcl_CreateInterp,Tcl_DeleteInterp,dgp2004-10-151-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclEvalObjvInternal,Tcl_LogCommandInfo,TclAddObjErrorInfo): * generic/tclCmdAH.c (Tcl_CatchObjCmd): * generic/tclEvent.c (BgError,ErrAssocData,Tcl_BackgroundError, HandleBgErrors,BgErrorDeleteProc): * generic/tclExecute.c (TclCreateExecEnv,TclDeleteExecEnv): * generic/tclIOUtil.c (comments only): * generic/tclInt.h (ExecEnv,Interp, ERR_IN_PROGRESS): * generic/tclInterp.c ([tclInit]): * generic/tclMain.c (comments only): * generic/tclNamesp.c (Tcl_CreateNamespace,Tcl_DeleteNamespace,TclTeardownNamespace): * generic/tclProc.c (TclUpdateReturnInfo): * generic/tclResult.c (Tcl_ResetResult,TclTransferResult): * generic/tclTrace.c (CallVarTraces): Reworked management of the "errorInfo" data of an interp. That information is now primarily stored in a new private (Tcl_Obj *) field of the Interp struct, rather than using a global variable ::errorInfo as the primary storage. The ERR_IN_PROGRESS flag bit value is no longer required to manage the value in its new location, and is removed. Variable traces are established to support compatibility for any code expecting the ::errorInfo variable to hold the information. ***POTENTIAL INCOMPATIBILITY*** Code that sets traces on the ::errorInfo variable may notice a difference in timing of the firing of those traces. Code that uses the value ERR_IN_PROGRESS.
* filesystem generic/platform code splittingvincentdarley2004-10-071-176/+14
|
* Simplify the guts of [glob]; maybe mortals can comprehend it now?dkf2004-10-061-110/+96
|
* fix to small filesystem bugsvincentdarley2004-09-271-77/+102
|
* two bugs fixed in filesystem docs and testsvincentdarley2004-08-311-147/+153
|
* cd infinite loop bug fixedvincentdarley2004-07-171-18/+37
|
* cd fix in vfsvincentdarley2004-07-111-12/+19
|
* Fixed Tcl_FSChdir not to forcefully update private cwd cached copy.vasiljevic2004-06-101-2/+16
| | | | | This fixes the problem of [cwd] reporting relative file paths under certain cirumstances.
* Partially corrected [Bug 932314]vasiljevic2004-06-091-5/+12
|
* fix to some compiler warningsvincentdarley2004-05-081-2/+2
|
* vfs glob root volume fixvincentdarley2004-05-071-11/+60
|
* fix to two filesystem bugs: more consistent file separator proc and correct ↵vincentdarley2004-04-231-4/+11
| | | | Tcl_FSJoinPath return values
* fix to comment (bug 931148)vincentdarley2004-04-071-4/+4
|
* Patch 922727 committed. Implements three changes:dgp2004-04-061-3/+1
| | | | | | | | | | | | | | | | | | | | | | | * generic/tclInt.h: Reworked the Tcl header files into a clean * unix/tclUnixPort.h: hierarchy where tcl.h < tclPort.h < tclInt.h * win/tclWinInt.h: and every C source file should #include * win/tclWinPort.h: at most one of those files to satisfy its declaration needs. tclWinInt.h and tclWinPort.h also better organized so that tclWinPort.h includes the Windows implementation of cross-platform declarations, while tclWinInt.h makes declarations that are available on Windows only. * generic/tclBinary.c (TCL_NO_MATH): Deleted the generic/tclMath.h * generic/tclMath.h (removed): header file. The internal Tcl * macosx/Makefile (PRIVATE_HEADERS): header, tclInt.h, has a * win/tcl.dsp: #include <math.h> directly, and file external to Tcl needing libm should do the same. * win/Makefile.in (WIN_OBJS): Deleted the win/tclWinMtherr.c file. * win/makefile.bc (TCLOBJS): It's a vestige from matherr() days * win/makefile.vc (TCLOBJS): gone by. * win/tcl.dsp: * win/tclWinMtherr.c (removed):
* cross-filesystem boundary glob fixvincentdarley2004-04-011-2/+19
|
* fix to glob with volume relative paths, bug 898238vincentdarley2004-03-301-3/+10
|
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-21/+14
|
* filesystem fixes for '-force' consistency and picky compilersvincentdarley2004-01-291-5/+17
|
* file normalize bug fixes for .. and .vincentdarley2004-01-231-7/+34
|
* filesystem optimisation -- Three main issues accomplished: (1) cleaned up ↵vincentdarley2004-01-211-70/+258
| | | | variable names in
* TclFinalizeFilesystem fixvincentdarley2004-01-091-3/+3
|
* All uses of 'panic' (the macro) changeddavygrvy2003-12-241-4/+4
| | | | | | | to 'Tcl_Panic' (the function). The #define of panic in tcl.h clearly states it is deprecated in the comments. [Patch 865264]
* Fixed 2 memory (object) leaks; Tcl Bug #839519vasiljevic2003-12-171-2/+4
|
* compilation warningvincentdarley2003-11-071-3/+10
|
* loadHandle vs clientData cleanupvincentdarley2003-11-031-16/+104
|
* * generic/tclBasic.c (TclAppendObjToErrorInfo): New internal routinedgp2003-10-141-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | that appends a Tcl_Obj to the errorInfo, saving the caller the trouble of extracting the string rep. * generic/tclStringObj.c (TclAppendLimitedToObj): New internal routine that supports truncated appends with optional ellipsis marking. This single routine supports UTF-8-safe truncated appends needed in several places throughout the Tcl source code, mostly for error and stack messages. Clean fix for [Bug 760872]. * generic/tclInt.h: Declarations for new internal routines. * generic/tclCmdMZ.c: Updated callers to use the new routines. * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclExecute.c: * generic/tclIOUtil.c: * generic/tclNamesp.c: * generic/tclObj.c: * generic/tclParseExpr.c: * generic/tclProc.c: * generic/tclStringObj.c: * mac/tclMacResource.c: * library/init.tcl: Updated ::errorInfo cleanup in [unknown] to reflect slight modifications to Tcl_LogCommandInfo(). Corrects failing init-4.* tests.
* filesystem bug fixesvincentdarley2003-10-131-6/+171
|
* Exported symbol name police (thanks GPS for spotting this!)dkf2003-10-101-8/+8
|
* Symbols which are visible outside a single compilation unit must havedkf2003-09-291-10/+10
| | | | | the prefix 'Tcl' to keep them out of the way of non-Tcl C code on Unix. (Problem reported by George Staplin.)
* * doc/FileSystem.3: Implementation ofdgp2003-09-051-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/source.n: TIPs 137/151. Adds * doc/tclsh.1: a -encoding option to * generic/tcl.decls: the [source] command * generic/tclCmdMZ.c (Tcl_SourceObjCmd): and a new C routine, * generic/tclIOUtil.c (Tcl_FSEvalFileEx): Tcl_FSEvalFileEx(), * generic/tclMain.c (Tcl_Main): that provides C access * mac/tclMacResource.c (Tcl_MacSourceObjCmd): to the same function. * tests/cmdMZ.test: Also adds command line * tests/main.test: option handling in Tcl_Main() so that tclsh * tests/source.test: and other apps built on Tcl_Main() respect a -encoding command line option before a script filename. Docs and tests updated as well. [Patch 742683] This is a ***POTENTIAL INCOMPATIBILITY*** only for those C programs that embed Tcl, build on Tcl_Main(), and make use of Tcl_Main's former ability to pass a leading "-encoding" option to interactive shell operations. * generic/tclInt.decls: Added internal stub * generic/tclMain.c (Tcl*StartupScript*): table entries for two new functions Tcl_SetStartupScript() and Tcl_GetStartupScript() that set/get the path and encoding for the startup script to be evaluated by either Tcl_Main() or Tk_Main(). Given public names in anticipation of their exposure by a followup TIP. * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c:
* Applied changes from 8.4.4 regarding the Bug #753315vasiljevic2003-08-231-150/+167
|
* * generic/tclIOUtil.c: ensure cd is thread-safe.hobbs2003-05-131-69/+103
| | | | [Bug #710642] (vasiljevic)
* remove duplicate function definitionvincentdarley2003-04-151-121/+1
|
* shared filesystem functionvincentdarley2003-04-141-5/+5
|
* fix 5 small filesystem bugs, and some typosvincentdarley2003-04-111-2084/+434
|
* Mac OS Classic specific fixes:core_8_4_2das2003-03-031-1/+13
| | | | | | | | | | | | | * generic/tclIOUtil.c (TclNewFSPathObj): on TCL_PLATFORM_MAC, skip potential directory separator at the beginning of addStrRep. * mac/tclMacChan.c (OpenFileChannel, CommonWatch): followup fixes to cut and splice implementation for file channels. * mac/tclMacFile.c (TclpUtime): pass native path to utime(). * mac/tclMacFile.c (TclpObjLink): correctly implemented creation of alias files via new static proc CreateAliasFile(). * mac/tclMacPort.h: define S_ISLNK macro to fix stat'ing of links. * mac/tclMacUtil.c (FSpLocationFromPathAlias): fix to enable stat'ing of broken links.
* * generic/tclIOUtil.c (MakeFsPathFromRelative): removed dead codehobbs2003-02-271-6/+2
| | | | check of typePtr (darley).
* * generic/tclIOUtil.c (Tcl_FSJoinPath, Tcl_FSGetNormalizedPath):hobbs2003-02-111-79/+91
| | | | | | | | (UpdateStringOfFsPath): revert the cwdLen == 0 check and instead follow a different code path in Tcl_FSJoinPath. (Tcl_FSConvertToPathType, Tcl_FSGetNormalizedPath): (Tcl_FSGetFileSystemForPath): Update string rep path objects before freeing the internal object. (darley)
* * tests/fileSystem.test: added test 8.3hobbs2003-02-111-73/+78
| | | | | * generic/tclIOUtil.c (Tcl_FSGetNormalizedPath): (Tcl_FSMatchInDirectory): handle the cwdLen == 0 case
* further fs cleanupvincentdarley2003-02-101-43/+8
|
* filesystem speed up round 2vincentdarley2003-02-101-109/+571
|