summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
| * | * generic/tclFileName.c: Correct result from [glob */test] when *dgp2009-08-201-2/+30
| | | | | | | | | | | | | | | | | | matches something like ~foo. [Bug 2837800] FossilOrigin-Name: 2dded56920e1301cf7a54b048be98414f273f64c
| * | * generic/tclFileName.c (DoGlob): One of thedgp2008-12-031-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Tcl_FSMatchInDirectory() calls did not have its return code checked. This caused error messages returned by some Tcl_Filesystem drivers to be swallowed. FossilOrigin-Name: 12a697308f08e354ef8a79254733871185ec6a31
| * | * 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: 2e92ce0921cab5b3bbc384c63ab37410c393e0bb
* | | Don't use arrays of length 1, just use a single element then, it makes code ↵nijtmans2010-05-191-6/+6
| | | | | | | | | | | | | | | more readable. FossilOrigin-Name: d3074821cb266b7709e26b7e359e40462d983613
* | | Code Audit results:dkf2010-03-051-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601
* | | More tidying up (whitespace, spelling, useless parentheses, useless casts)dkf2010-02-241-3/+2
| | | | | | | | | FossilOrigin-Name: 511d94dd873e4ace6252b896eeb821f03023f00f
* | | [Bug 942170]: Detect the st_blocks field of 'struct stat' correctly.dkf2009-12-281-6/+7
| | | | | | | | | FossilOrigin-Name: ce4adf55c782a8ccc0803aecabb2be890af6a0b3
* | | Various CYGWIN-related fixes. In the win32 configure script, CYGWIN is still ↵nijtmans2009-12-211-5/+14
| | | | | | | | | | | | | | | not enabled yet, but at least it is a step in the right direction. FossilOrigin-Name: dca4a9980ea1e6abbb78a199f0fbf597beb38138
* | | * generic/tclFileName.c: Correct regression in [Bug 2837800] fix.dgp2009-08-211-2/+2
| | | | | | | | | | | | | | | | | | * tests/fileName.test: FossilOrigin-Name: c60ddf28cb3b4d4a5abff8bbf27e1eb553f55d1a
* | | * generic/tclFileName.c: Correct result from [glob */test] when *dgp2009-08-201-2/+30
| | | | | | | | | | | | | | | | | | matches something like ~foo. [Bug 2837800] FossilOrigin-Name: da162d3fdaf4cfc818fd5b8ac2b267afdf92c734
* | | CONSTify TclPrintInstruction and TclpNativeJoinPath (TIP #27)nijtmans2009-01-221-10/+13
| | | | | | | | | | | | | | | | | | | | | {unix win} in *.decls is equivalent to {generic} tclGetDate.y, tclDate.c: single internal const decoration FossilOrigin-Name: b4d9520da5a0a5a222745f840e07616a462c2dac
* | | * generic/tclFileName.c (DoGlob): One of thedgp2008-12-031-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | Tcl_FSMatchInDirectory() calls did not have its return code checked. This caused error messages returned by some Tcl_Filesystem drivers to be swallowed. FossilOrigin-Name: 25f2f7822582758ae1682c6bf7fa4a4105f9cedd
* | | Add "const" to many internalnijtmans2008-10-161-5/+5
| | | | | | | | | | | | | | | | | | | | | const tables. No functional or API change. FossilOrigin-Name: f03d2e2d83be42035c4aad3b01bbd09f5a967c1b
* | | TIP #323 IMPLEMENTATION (partial)dgp2008-09-291-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | * doc/glob.n: Revise [glob] to accept zero patterns. * generic/tclFileName.c: * tests fileName.test: FossilOrigin-Name: a7fdab8e2f47f7494285338529e2c3a130b20bf4
* | | Fix [Bug 2130726].dkf2008-09-271-1/+24
| | | | | | | | | FossilOrigin-Name: d18c55b8a232aa4e1907c162303b4c42eea7ba15
* | | Implement TIP #316.dkf2008-09-241-1/+110
| | | | | | | | | FossilOrigin-Name: 05e3bb92fddd1036e881f212607acb1f284ddc1c
* | | * 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: d391632bf332b83305547b0264a6ae7ab24e713a
* | | fix [2021443] inconsistant "wrong # args" messages (follow-up)nijtmans2008-07-211-2/+2
| | | | | | | | | FossilOrigin-Name: 395eaa2623b2540e0cb48daab4369053acb0f8d0
* | | Reverted dkf's accidental commit of the TIP 316 APIs as part of a code cleanuppatthoyts2008-05-021-108/+1
| | | | | | | | | FossilOrigin-Name: e4acb9c1462ec5e2ab936e036fd80c27b75a042f
* | | More elimination of pre-C89-isms.dkf2008-05-021-19/+128
|/ / | | | | FossilOrigin-Name: 27caec3459c6d0a42da22078c41eb35bf4661ebf
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | More minor cleanupdkf2007-11-181-8/+7
| | | | | | FossilOrigin-Name: 2746b844cadd89c74077393da3fe02624ac8b162
* | * generic/tclInt.decls: Revised the interfaces of the routinesdgp2007-06-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclExecute.c: TclStackAlloc and TclStackFree to make them easier for callers to use (or more precisely, harder to misuse). TclStackFree now takes a (void *) argument which is the pointer intended to be freed. TclStackFree will panic if that's not actually the memory the call will free. TSA/TSF also now tolerate receiving (interp == NULL), in which case they simply fall back to be calls to Tcl_Alloc/Tcl_Free. * generic/tclIntDecls.h: make genstubs * generic/tclBasic.c: Updated callers * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCompCmds.c: * generic/tclCompExpr.c: * generic/tclCompile.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclProc.c: * generic/tclTrace.c: * unix/tclUnixPipe.c: FossilOrigin-Name: 4ea644b0decea73815d69d6a1d3767ed27191491
* | Whitespace policing, replacing commas in varargs with constant string ↵kennykb2007-04-201-3/+3
| | | | | | | | | | catenation, and fixed an oversight in the fix for NZA time zones. FossilOrigin-Name: d6ee490b6b6a9de069d6463ed744906e1e89e221
* | Eliminate use of (VOID*) casts when calling memset or memcpy.dkf2007-04-171-2/+2
| | | | | | FossilOrigin-Name: 45b49489451e09193f60023f5244b0d73a26880e