summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
Commit message (Collapse)AuthorAgeFilesLines
* Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>jan.nijtmans2013-02-101-1/+0
|\ | | | | FossilOrigin-Name: 4ef9e636564510c7d3930a697c92346e741365f2
| * Unbreak msvc builds, by depending on tclPort.h for inclusion of <sys/stat.h>.jan.nijtmans2013-02-101-1/+0
| | | | | | FossilOrigin-Name: 7725ffcfef05b6b690fe6864436b01970086fb76
* | revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
|\ \ | |/ | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h FossilOrigin-Name: a1d2456c70788945263e4a3c0d7c5307298c07a1
| * revert [8abba84224], and make sure that every source file that uses ↵jan.nijtmans2013-01-171-0/+1
| | | | | | | | | | Tcl_StatBuf has an "#include <sys/stat.h>" before including tcl.h FossilOrigin-Name: 38228c756972ed2bc9299e0e4b0183bbaf24bb4e
* | [Bug #1536227]: Cygwin network pathname supoortjan.nijtmans2012-08-081-47/+53
|\ \ | |/ | | FossilOrigin-Name: dfd98db64fce90296b4856c84948d9efc3aa19b8
| * [Bug #1536227]: Cygwin network pathname supoortjan.nijtmans2012-08-081-145/+96
| | | | | | FossilOrigin-Name: b43269edb8904509542c187b2d9127420603fced
* | converting to using Tcl_Obj API for error message generation; part donedkf2012-08-031-17/+22
| | | | | | FossilOrigin-Name: 7fb86a29c9bfa1140ea3a8af6f65221ce4474e45
* | missed a spotdkf2012-07-041-2/+1
| | | | | | FossilOrigin-Name: 28f296708d2a92d530ff025506d20671e80e20a5
* | Factor out a number of common patterns of use of Tcl_DStringAppend.dkf2012-07-031-17/+15
| | | | | | FossilOrigin-Name: 4dd736c95fc5e333c574e4d23aeccb7e0bdd41ae
* | [Patch #1536227]: Cygwin network pathname supportjan.nijtmans2012-06-251-17/+23
|\ \ | |/ | | FossilOrigin-Name: a9f36601c50ac1cb5da6f2552f47834a9ab4150e
| * [Patch #1536227]: Cygwin network pathname supportjan.nijtmans2012-06-251-6/+23
| |\ | | | | | | FossilOrigin-Name: 299f53aadbcb96cb2f2666874a5d694764d4d68b
| | * Cygwin network pathname supportjan.nijtmans2012-06-221-6/+28
| |/ | | | | FossilOrigin-Name: 2194dfa1f722d00301250ecb34f58b134fbedb97
* | When using Tcl_SetObjLength() calls to grow and shrink the objPtr->bytes buffer,dgp2012-05-211-2/+2
|\ \ | |/ | | | | | | | | | | care must be taken that the value cannot possibly become pure Unicode. Calling Tcl_AppendToObj() has the possibility of making such a conversion. Bug found while valgrinding the trunk. FossilOrigin-Name: a13bf543cf52872ab22e8b6848f7e1c1482ed581
| * When using Tcl_SetObjLength() calls to grow and shrink the objPtr->bytes buffer,dgp2012-05-211-2/+2
| |\ | | | | | | | | | | | | | | | | | | care must be taken that the value cannot possibly become pure Unicode. Calling Tcl_AppendToObj() has the possibility of making such a conversion. Bug found while valgrinding the trunk. FossilOrigin-Name: 28e43f3b9cdf9f73d13066022ab7380487210a81
| | * When using Tcl_SetObjLength() calls to grow and shrink the objPtr->bytes buffer,dgp2012-05-211-2/+2
| | | | | | | | | | | | | | | | | | | | | care must be taken that the value cannot possibly become pure Unicode. Calling Tcl_AppendToObj() has the possibility of making such a conversion. Bug found while valgrinding the trunk. FossilOrigin-Name: 4aab8681b0a77c52cf2d7554ea31d23e130188d4
| | * make some more internal tables CONSTjan.nijtmans2012-04-181-1/+1
| | | | | | | | | | | | | | | fix compilation with -DNO_CONST FossilOrigin-Name: 8e001f840260d0833abef7763606b84b0df941d6
* | | * generic/tclUtil.c (TclDStringToObj): Added internal function to makedkf2012-04-251-9/+4
| | | | | | | | | | | | | | | | | | the fairly-common operation of converting a DString into an Obj a more efficient one. FossilOrigin-Name: 2e12143e3906901f7fe95b8ce11211f9310e741f
* | | Reduce amount of unreachable code. Refactor Win socket and load code to be lessdkf2012-04-051-67/+9
| | | | | | | | | | | | | | | baroque in its internals. FossilOrigin-Name: 92cfbef04802afe414b04f8fff6a36b61d5ae27d
* | | some formatting (*.decls)jan.nijtmans2012-04-041-9/+0
|\ \ \ | |/ / | | | | | | | | | | | | remove some unused cygwin-related code some minor gcc warnings FossilOrigin-Name: 804d7eee7c9898322aac987bbc31821e8eda9f62
| * | some formatting (*.decls)jan.nijtmans2012-04-041-9/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | move up #undef, for macro which is conflicting with later stuff. remove some unused cygwin-related code some minor gcc warnings FossilOrigin-Name: 904f4fe3fe9470216e36377ce7e9edcdc398ea25
| | * [Bug 3288345] Wrong Tcl_StatBuf used on Cygwinjan.nijtmans2012-03-201-11/+0
| | | | | | | | | | | | | | | (backported from Tcl 8.5) FossilOrigin-Name: 77f914d3725ba27f162091c7a59053ef6add8df9
| | * [Bug 3388350] mingw64 compiler warningsjan.nijtmans2011-08-161-0/+1
| | | | | | | | | | | | | | | | | | n mingw, sys/stat.h must be included before winsock2.h, so make sure of that FossilOrigin-Name: 008181d7a65e611c4f5a9a7e2404ceabdd9d5b77
| * | CONST-ification update.dgp2011-10-271-2/+3
| | | | | | | | | FossilOrigin-Name: 1df7c858920f74e52b8e38175971671a6a175bfc
* | | 3479689 New internal routine TclJoinPath().dgp2012-01-271-22/+18
| | | | | | | | | | | | | | | | | | Refactor all the *Join*Path* routines to give them more useful interfaces that are easier to manage getting the refcounts right. FossilOrigin-Name: 55c8c6c1552f0cd51a3b76c0ca7a6ddf3e514ad0
* | | Use Tcl_PrintfObj to generate more (complex) error messages.dkf2011-08-051-7/+7
| | | | | | | | | FossilOrigin-Name: 76495bbc296be2fade58782570e8a9ae5b98dc11
* | | More generation of errorCode information (default [bgerror] and [glob]).dkf2011-04-021-0/+17
| | | | | | | | | FossilOrigin-Name: a2fcb8020de3acfa3ffabd4a342af8b6f0e12935
* | | Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-3/+2
| | | | | | | | | | | | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* | | Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ \ \ | |/ / | | | | | | | | | cause more harm than good. Purged them (except in zlib files). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * | Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ \ | | |/ | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | | | | | | | more harm than good. Purged them. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * * generic/tclFileName.c: Correct result from [glob */test] when *dgp2009-08-171-3/+27
| | | | | | | | | | | | | | | | | | * tests/fileName.test: matches something like ~foo. [Bug 2837800] FossilOrigin-Name: 5433dba4a65943dd96b3a6585baa6bbb753a772c
| | * * generic/tclFileName.c (TclDoGlob): One of thedgp2008-12-031-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Tcl_FSMatchInDirectory() calls did not have its return code checked. Some VFS drivers can return TCL_ERROR, and when that's not checked, the error message gets converted into a list of matching files returned by [glob], with ridiculous results. FossilOrigin-Name: e3869039df07f37924f4286bff0e1ff3c1aa705c
| | * * generic/tclFileName.c: Fix for errors handling -types {}dgp2008-08-131-1/+5
| | | | | | | | | | | | | | | | | | | | | * tests/fileName.test: option to [glob]. [Bug 1750300] Thanks to Matthias Kraft and George Peter Staplin. FossilOrigin-Name: cc8e0dda9a9461f727ddbdd62d7813607c50b8d6
| | * Attempt to correct regression filename-16.6 due to 2006-05-13 commit.dgp2006-10-031-2/+6
| | | | | | | | | FossilOrigin-Name: 9f44abdef2653c931590c41f7d6f20c7c903f7b5
| | * * generic/tclFileName.c (TclGlob): Prevent doubling of directorydgp2006-10-021-1/+5
| | | | | | | | | | | | | | | | | | separators by [glob]. [Bug 1569042] FossilOrigin-Name: dfeb6ada5a2865594e1da93cd1ae427e49860287
| | * * generic/tclFileName.c (TclDoGlob): match incr with existing decr.hobbs2006-08-301-6/+6
| | | | | | | | | FossilOrigin-Name: a8648325b1f1147ee4357ca280d5c24b582e7177
| | * * generic/tclFileName.c (TclDoGlob): Disabled the partialdgp2006-05-131-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | normalization done by the recursive glob routine, since changing the precise string of the pathname broke [glob] on some Tcl_Filesystems. [Bug 943995] FossilOrigin-Name: 641fe5b72dd38760e82777c6dfb460322d099422
| | * bugs 1194458 and 1225044kennykb2005-06-211-9/+15
| | | | | | | | | FossilOrigin-Name: 74c4fb693b5dd04956b2eb99ca9b8012fd547adc
| | * more tests and a fix to bug 1158199vincentdarley2005-03-151-4/+7
| | | | | | | | | FossilOrigin-Name: a716de25ea6523abfbc201e55cfc7f35672f3088
| | * fix to file norm, file pathtype on windows reserved filenames - ensure build ↵vincentdarley2005-03-151-4/+10
| | | | | | | | | | | | | | | ok on unix FossilOrigin-Name: d18606faab03c49a5c39405a1bfe56df7bcb31a3
| | * fix to file norm, file pathtype on windows reserved filenamesvincentdarley2005-03-151-18/+19
| | | | | | | | | FossilOrigin-Name: 6ad619ecdd97e20541554225d93845b5889f0227
| | * glob -path fix for near filesystem rootvincentdarley2004-03-091-1/+11
| | | | | | | | | FossilOrigin-Name: b16129b8db5687617d5dbe3a74e29d9b46792767
| | * * 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. This stopped a segfault in test filename-11.36. FossilOrigin-Name: 1da8144679f0b664c5f113be2bf45cc663d200a9
| | * filesystem bug fixes: volumerelative normalization, file join inconsistencyvincentdarley2003-10-061-2/+3
| | | | | | | | | FossilOrigin-Name: a3d43f8f9643c77bc5f894bd9cfb1a7a592823a6
| | * backporting of filesystem tests, docsvincentdarley2003-10-031-5/+6
| | | | | | | | | FossilOrigin-Name: 9cc6cd11c033e2c40d3aba0f11cb4f1ce995b1cb
| | * 2003-07-16 Mumit Khan <khan@nanotech.wisc.edu>hobbs2003-07-171-40/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclIOUtil.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. FossilOrigin-Name: fe62167ad060b925ca85bff89b218fa2b38213d5
| | * * generic/tclFileName.c (Tcl_GlobObjCmd): [Bug 771840]dgp2003-07-161-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | * generic/tclIOUtil.c (Tcl_FSConvertToPathType):[Bug 771947] * unix/tclUnixFCmd.c (GetModeFromPermString): [Bug 771949] Silence compiler warnings about unreached lines. FossilOrigin-Name: 8466408ea4e9255f7551a8026f35602f33a8f3d3
| | * glob and square brackets fixvincentdarley2003-04-291-3/+14
| | | | | | | | | FossilOrigin-Name: 3e58d4d110b91e6d69bf5f46c21a9cb22a8fbf93
| * | installData.tcl: Make sure that copyDir only receives normalized paths.nijtmans2010-05-211-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | tclPlatDecls.h: Fix <tchar.h> inclusion for CYGWIN. tclPathObj.c: Fix Tcl_SetStringObj usage for CYGWIN. *.c: Fix various minor other gcc warnings, like signed<->unsigned mismatch. FossilOrigin-Name: 624625fe98a646ff7137e7331d7185ebd1886049
| * | * generic/tclFileName.c: Correct regression in [Bug 2837800] fix.dgp2009-08-211-2/+2
| | | | | | | | | | | | | | | | | | * tests/fileName.test: FossilOrigin-Name: 06b3699815a5e463575557a62a3cedff0e59eff8