summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
Commit message (Collapse)AuthorAgeFilesLines
* fix to some compiler warningsvincentdarley2004-05-081-2/+6
|
* vfs glob root volume fixvincentdarley2004-05-071-2/+19
|
* Patch 922727 committed. Implements three changes:dgp2004-04-061-2/+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):
* Corrected case: Filesystem.h -> FileSystem.hdgp2004-03-301-2/+2
|
* fix to glob with volume relative paths, bug 898238vincentdarley2004-03-301-2/+50
|
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-576/+3
|
* glob -path fix for near filesystem rootvincentdarley2004-03-091-3/+6
|
* glob -path fix for near filesystem rootvincentdarley2004-03-091-1/+8
|
* * generic/tclFileName.c (SkipToChar): Corrected CONST anddgp2004-02-051-6/+5
| | | | type-casting issues that caused compiler warnings.
* filesystem optimisation -- Three main issues accomplished: (1) cleaned up ↵vincentdarley2004-01-211-374/+436
| | | | variable names in
* * generic/tclFileName.c (Tcl_GlobObjCmd): Latest changes todgp2004-01-131-24/+16
| | | | | | management of the interp result by Tcl_GetIndexFromObj() exposed improper interp result management in the [glob] command procedure. Corrected by adopting the Tcl_SetObjResult(Tcl_NewStringObj) pattern.
* filesystem bug fixesvincentdarley2003-10-131-5/+7
|
* 2003-07-16 Mumit Khan <khan@nanotech.wisc.edu>hobbs2003-07-171-40/+13
| | | | | | | | | * generic/tclPathObj.c (SetFsPathFromAny): Add Cygwin specific code to convert POSIX filename to native format. * generic/tclFileName.c (Tcl_TranslateFileName): And remove from here. (TclDoGlob): Adjust for cygwin and append / for dirs instead of \ * win/tclWinFile.c (TclpObjChdir): Use chdir on Cygwin. [Patch 679315]
* * generic/tclFileName.c (Tcl_GlobObjCmd): [Bug 771840]dgp2003-07-161-2/+1
| | | | | | * generic/tclPathObj.c (Tcl_FSConvertToPathType):[Bug 771947] * unix/tclUnixFCmd.c (GetModeFromPermString): [Bug 771949] Silence compiler warnings about unreached lines.
* fix to glob and filenames with square bracketsvincentdarley2003-04-251-3/+14
|
* remove unused variablevincentdarley2003-01-091-4/+1
|
* 3 small fixesvincentdarley2002-11-131-3/+45
|
* 2002-09-18 Mumit Khan <khan@nanotech.wisc.edu>hobbs2002-09-271-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added basic Cygwin support. * win/tcl.m4 (SC_PATH_TCLCONFIG): Support one-tree build. (SC_PATH_TKCONFIG): Likewise. (SC_PROG_TCLSH): Likewise. (SC_CONFIG_CFLAGS): Assume real Cygwin port and remove -mno-cygwin flags. Add -mwin32 to extra_cflags and extra_ldflags. Remove ``-e _WinMain@16'' from LDFLAGS_WINDOW. * win/configure.in: Allow Cygwin build. (SEH test): Define to be 1 instead of empty value. (EXCEPTION_DISPOSITION): Add test. * win/configure: Regenerate. * generic/tcl.h: Don't explicitly define __WIN32__ for Cygwin, let the user decide whether to use Windows or POSIX personality. (TCL_WIDE_INT_TYPE, TCL_LL_MODIFIER, struct Tcl_StatBuf): Define for Cygwin. * generic/tclEnv.c (Tcl_CygwinPutenv): putenv replacement for Cygwin. * generic/tclFileName.c (Tcl_TranslateFileName): Convert POSIX to native format. (TclDoGlob): Likewise. * generic/tclPlatDecls.h (TCHAR): Define for Cygwin. * win/tclWinPort.h (putenv, TclpSysAlloc, TclpSysFree, TclpSysRealloc): Define for Cygwin.
* * generic/tclFileName.c (TclGlob): mac specific fix todas2002-06-051-2/+12
| | | | | | | | | recent changes in 'glob -tails' handling. * mac/tclMacPort.h: * mac/tclMacChan.c: fixed TIP#91 bustage. * mac/tclMacResource.c (Tcl_MacConvertTextResource): added utf conversion of text resource contents. * tests/macFCmd.test (macFCmd-1.2): allow CWIE creator.
* glob fixesvincentdarley2002-05-301-28/+62
|
* fix to bug 553320vincentdarley2002-05-071-2/+9
|
* fix to 551306vincentdarley2002-05-021-6/+6
|
* 4 fs fixesvincentdarley2002-03-241-21/+10
|
* * generic/tclFileName.c (Tcl_TranslateFileName): decr refcount forhobbs2002-02-271-3/+4
| | | | error case to prevent mem leak.
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-2/+26
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.
* * Partial TIP 27 rollback. Following routinesdgp2002-02-081-3/+3
| | | | | | | | | | | | | restored to return (char *): Tcl_DStringAppend, Tcl_DStringAppendElement, Tcl_JoinPath, Tcl_TranslateFileName, Tcl_ExternalToUtfDString, Tcl_UtfToExternalDString, Tcl_UniCharToUtfDString, Tcl_GetCwd, Tcl_WinTCharToUtf. Also restored Tcl_WinUtfToTChar to return (TCHAR *) and Tcl_UtfToUniCharDString to return (Tcl_UniChar *). Modified some callers. This change recognizes that Tcl_DStrings are de-facto white-box objects. * generic/tclCmdMZ.c: corrected use of C++-style comment.
* * Sought out and eliminated instances of CONST-casting that are nodgp2002-01-261-3/+3
| | | | longer needed after the TIP 27 effort.
* * Updated interfaces of generic/tclEncoding, generic/tclFilename.c,dgp2002-01-251-46/+24
| | | | | | | | | | | generic/tclIOUtil.c, generic/tclPipe.c, generic/tclResult.c, generic/tclUtil.c, generic/tclVar.c and mac/tclMacResource.c according to TIP 27. Tcl_TranslateFileName rewritten as wrapper around VFS-aware version. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes source incompatibilities: argv arguments of Tcl_Concat, Tcl_JoinPath, Tcl_OpenCommandChannel, Tcl_Merge; argvPtr arguments of Tcl_SplitList and Tcl_SplitPath.
* * More TIP 27 updates in tclIOUtil.c and tclIndexObj.c that weredgp2002-01-171-2/+2
| | | | | | | overlooked before. Updated callers. ***POTENTIAL INCOMPATIBILITY*** Includes a source incompatibility in the tablePtr arguments of the Tcl_GetIndexFromObj* routines.
* * Updated APIs in generic/tclUtf.c and generic/tclRegexp.c accordingdgp2002-01-171-3/+3
| | | | to the guidelines of TIP 27. Updated callers.
* Undo of mistaken commit. Sorry!dgp2001-10-161-3/+3
|
* * Added test to demonstrate memory corruption problems. [Bug 219393].dgp2001-10-161-3/+3
|
* minor code cleanuphobbs2001-10-151-30/+29
|
* * generic/tclFileName.c (Tcl_SplitPath): corrected mem leakhobbs2001-10-101-1/+6
| | | | | intro'd with VFS code where the result obj from Tcl_FSSplitPath was not getting freed.
* * Vince Darley reports the 2001-09-24 TIP 27 changes left the windgp2001-09-271-2/+2
| | | | directory CONST poisoned. These changes should fix that.
* minor fs, vfs fixesvincentdarley2001-09-041-43/+174
|
* filesystemvincentdarley2001-08-301-221/+26
|
* corrected minor compiler warningshobbs2001-08-231-18/+11
|
* fs updatevincentdarley2001-08-231-269/+597
|
* * generic/tclFileName.c (Tcl_FSSplitPath): update to Tcl stylehobbs2001-08-071-11/+14
| | | | | | | guide. * generic/tclFCmd.c (FileCopyRename): fixed mem leak in introduction of vfs code where a new Tcl_Obj wasn't freed.
* Changes from TIP#17 "Redo Tcl's filesystem"vincentdarley2001-07-311-103/+330
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following files were impacted. * doc/Access.3: * doc/FileSystem.3: * doc/OpenFileChnl.3: * doc/file.n: * doc/glob.n: * generic/tcl.decls: * generic/tcl.h: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDate.c: * generic/tclDecls.h: * generic/tclEncoding.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclGetDate.y: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclIOUtil.c: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclLoad.c: * generic/tclStubInit.c: * generic/tclTest.c: * generic/tclUtil.c: * library/init.tcl: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacPort.h: * mac/tclMacResource.c: * mac/tclMacTime.c: * tests/cmdAH.test: * tests/event.test: * tests/fCmd.test: * tests/fileName.test: * tests/io.test: * tests/ioCmd.test: * tests/proc-old.test: * tests/registry.test: * tests/unixFCmd.test: * tests/winDde.test: * tests/winFCmd.test: * unix/mkLinks: * unix/tclUnixFCmd.c: * unix/tclUnixFile.c: * unix/tclUnixInit.c: * unix/tclUnixPipe.c: * win/tclWinFCmd.c: * win/tclWinFile.c: * win/tclWinInit.c: * win/tclWinPipe.c
* * generic/tclFileName.c (ExtractWinRoot): corrected ABR errorhobbs2001-05-151-12/+11
|
* * generic/tclFileName.c (SplitUnixPath): added support for QNXhobbs2000-04-191-1/+14
| | | | node ids.
* * generic/tclFileName.c (Tcl_TranslateFileName): Applied patchhobbs2000-03-031-67/+75
| | | | | from Newman to significantly speedup file split/join on Windows (replaces regexp with custom parser). [Bug: 2867]
* * generic/tclFileName.c (Tcl_JoinPath): improved support for specialhobbs2000-02-011-3/+6
| | | | QNX node id prefixes in pathnames [Bug: 4053]
* * generic/tclClock.c (FormatClock): inlined resultPtr, as ithobbs2000-01-261-1/+10
| | | | | | | | | | conflicted with var creation for HAVE_TZSET #def [Bug: 4063] * generic/tclCmdIL.c (Tcl_LsortObjCmd): fixed potential leak when calling lsort -command with bad command [Bug: 4067] * generic/tclFileName.c (Tcl_JoinPath): added support for special QNX node id prefixes in pathnames [Bug: 4053]
* * generic/tclInt.h:hobbs2000-01-241-8/+7
| | | | | | | | | * generic/tcl.decls: moved Tcl_ProcObjCmd to stubs table [Bug: 3827] and removed 'register' from stub definition of Tcl_AppendUnicodeToObj [Bug: 4038] * generic/tclFileName.c: improved guessing of path separator for the Mac. (Darley)
* * generic/tclUtf.c: changed Tcl_UtfBackslash to not allowhobbs2000-01-111-4/+4
| | | | | | | non-octal digits (8,9) in \ooo substs. [Bug: 3975] * generic/tcl.h: noted need to change win/tcl.m4 and tools/tclSplash.bmp for minor version changes
* * doc/glob.n:hobbs1999-12-121-61/+440
| | | | | | | | | | | | | | | | * tests/fileName.test: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclStubInit.c: * generic/tclEncoding.c: * generic/tclFileName.c: * mac/tclMacFile.c: * unix/tclUnixFile.c: * win/tclWinFile.c: enhanced the glob command with the new options -types -path -directory and -join. Deprecated TclpMatchFiles with TclpMatchFilesTypes, extended TclGlob and TclDoGlob and added GlobTypeData structure.
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-248/+356
|