summaryrefslogtreecommitdiffstats
path: root/generic/tclFileName.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Reformat to standard function definition formdkf2007-04-101-2/+5
| | | FossilOrigin-Name: 23afa345cba1380c378211f8208e659d69d6a370
* Handle creation of Tcl_Objs from constant strings better (easier to use, moredkf2007-04-101-7/+6
| | | | | | efficient). After [Patch 1529526] (afredd) FossilOrigin-Name: 4d69119aadb4298f8e994440eb988c6c46396086
* * generic/tclBasic.c: Replace arrays on the C stack and ckallocdgp2007-04-021-3/+4
| | | | | | | | | | | | | | * generic/tclExecute.c: calls with TclStackAlloc calls to use memory * generic/tclFCmd.c: on Tcl's evaluation stack. * generic/tclFileName.c: * generic/tclIOCmd.c: * generic/tclIndexObj.c: * generic/tclInterp.c: * generic/tclNamesp.c: * generic/tclTrace.c: * unix/tclUnixPipe.c: FossilOrigin-Name: fbe8c8af9f9e911a208ffc73968ed27691b54367
* various "const" additions, in line with TIP #27nijtmans2007-02-201-39/+40
| | | FossilOrigin-Name: 81ea4e1335f3c78465e90ec021758c096ba9b544
* Bug #1479814. Handle extended paths on Windows NT and above.patthoyts2007-02-201-5/+47
| | | FossilOrigin-Name: 05001e9ac26df0543c40dddde186d08225a14adf
* * generic/tclFileName.c (TclGlob): added a panic for a call withmsofer2006-09-271-2/+7
| | | | | | | TCL_GLOBMODE_TAILS and pathPrefix==NULL. This would cause a segfault, as found by coverity #26. FossilOrigin-Name: 668bd0bb045dc737d238599f636d5045cd181711
* * generic/tclFileName.c (DoGlob): match incrs with decrs.hobbs2006-08-301-1/+3
| | | FossilOrigin-Name: 8c6496902edf9a8d0a9de0ee69494f4ad6065495
* fix to two filesystem issuesvincentdarley2006-03-191-31/+28
| | | FossilOrigin-Name: 8da0e23fe627e7154135c9320857f0d7cbaa130a
* fix to glob memory leak and file stat ino/nlink on windowsvincentdarley2005-10-231-1/+7
| | | FossilOrigin-Name: 1daf31761f62c534ca6ef89999d4350bb3c3c326
* ANSI function definitionsdkf2005-10-181-137/+137
| | | FossilOrigin-Name: b0f93b363bd94c77f1b9a355a6c9f5b0d09de94a
* Getting more systematic about styledkf2005-07-171-422/+540
| | | FossilOrigin-Name: 7591df07d6708876cd588c42190751e37f827e21
* bug 1194458kennykb2005-06-211-8/+15
| | | FossilOrigin-Name: 8ba64486071b8de5a3894f730ee4623740e6432c
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232kennykb2005-05-101-1/+1
| | | FossilOrigin-Name: 1cc2336920c70c6b9f7825b88dec87fc223f2c4e
* silenced a compiler warningkennykb2005-04-201-2/+2
| | | FossilOrigin-Name: 6ccb622ed3b17dd8fab0341513b1e2c675e6fd21
* more tests and a fix to bug 1158199vincentdarley2005-03-151-4/+7
| | | FossilOrigin-Name: cc25322a6cf9b95b91ff126f019fae01fa6c49c7
* fix to file norm, file pathtype on windows reserved filenames - ensure build ↵vincentdarley2005-03-151-4/+4
| | | | | ok on unix FossilOrigin-Name: 5bd317f5706f4a76086cef81f51fdd19610d3f02
* fix to file norm, file pathtype on windows reserved filenames - ensure build ↵vincentdarley2005-03-151-4/+10
| | | | | ok on unix FossilOrigin-Name: 3171e96f9104b53de5db10a5f47b0a42aeb88f3c
* fix to file norm, file pathtype on windows reserved filenamesvincentdarley2005-03-151-14/+15
| | | FossilOrigin-Name: ce26c887c6d39d67dedad06f9aae956a63d0870d
* fix to test suite failuresvincentdarley2005-02-101-3/+12
| | | FossilOrigin-Name: 305f79ab63923b512474cd0139cf7eee72ae827b
* * generic/tclThread.c: Typo police. Fixed some nitsandreas_kupries2005-01-211-2/+2
| | | | | | | | * generic/tclCmdAH.c: in header comments of functions. * generic/tclBasic.c: (Missing --). * generic/tclFileName.c: FossilOrigin-Name: d125e517a43ea882d9561d9357fbe6549aeeb642
* fix to glob failure on Windows sharesvincentdarley2005-01-171-2/+18
| | | FossilOrigin-Name: ff39ea39c36761c57ac346be67b342104c0e57e0
* filesystem generic/platform code splittingvincentdarley2004-10-071-3/+14
| | | FossilOrigin-Name: 60716a23e9f5c5f0e1e02caa3de634fbd0080f6a
* Simplify the guts of [glob]; maybe mortals can comprehend it now?dkf2004-10-061-199/+214
| | | FossilOrigin-Name: d90ba0c5c9262c575ca929878c6e70804a390589
* Silence compiler warning...dkf2004-10-061-1/+2
| | | FossilOrigin-Name: 76b07a26d5dc661b15fae1ec1a46e48812d9e44d
* Style fixes (spaces, braces, etc.)dkf2004-10-061-466/+463
| | | FossilOrigin-Name: 4f23da9f69d8b6e9a316b7fb52b7df7a186e046a
* fix to small filesystem bugsvincentdarley2004-09-271-1/+7
| | | FossilOrigin-Name: d6e4847a47e5bbf348c1feb2dc00152162e49889
* fix to some compiler warningsvincentdarley2004-05-081-2/+6
| | | FossilOrigin-Name: d007991f5512d22d53f1effedafcf84134b24f7b
* vfs glob root volume fixvincentdarley2004-05-071-2/+19
| | | FossilOrigin-Name: 265c17a9879fe49e872799dfa81a6a9fb3472547