lib/dirname.c


Log

Author Commit Date CI Message
Jim Meyering 38b8fad5 2000-12-07T14:11:52 convert a > expression to the equivalent < one
Jim Meyering 3334a995 2000-12-07T14:10:21 (FILESYSTEM_PREFIX_LEN): Define. (dir_name_r): Declare this function as static. [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd manifest itself on a name containing a mix of slashes and backslashes. Make this function work with names starting with a DOS-style drive letter and colon prefix. (dir_name): Append `.' if necessary. Based mostly on patches from Prashant TR and Eli Zaretskii.
Jim Meyering 05f0f7f4 2000-12-05T13:14:13 (dir_name_r): Add `const' in a few local declarations.
Jim Meyering bbbfa79c 2000-11-30T09:35:52 (dir_name_r): Fix typo: int -> size_t.
Jim Meyering 99abda1a 2000-10-21T12:46:58 tweak comment
Jim Meyering 522bc28b 2000-10-21T11:44:43 (dir_name_r): New function, factored out of dir_name. (dir_name): Use dir_name_r.
Jim Meyering 4d2ba1df 2000-10-21T11:28:42 (memrchr): Declare if necessary. (dir_name): Remove the restriction that there be no trailing slashes. Now, this code skips past them, effectively ignoring them. [TEST_DIRNAME] (main): New unit tests.
Jim Meyering 45273299 2000-08-01T07:10:05 (ISSLASH): Define. (BACKSLASH_IS_PATH_SEPARATOR): Define. (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which both `\' and `/' may be use as path separators. Based on a patch from Prashant TR.
Jim Meyering 1c4c29a5 2000-07-29T17:11:33 (dir_name): Use __MSDOS__ in favor of MSDOS.
Jim Meyering 7c89f41c 2000-07-29T08:15:01 remove prematurely-added ISSLASH definition
Jim Meyering 03400241 2000-07-29T08:10:46 (dir_name): Assert that there are no trailing slashes.
Jim Meyering 068326db 2000-07-29T08:00:11 (dir_name) [MSDOS]: Declare `lim' to be const.
Jim Meyering d349992d 2000-07-09T07:22:43 update copyright date
Jim Meyering 373d8ea1 2000-01-22T21:29:02 (dir_name): Support for DOS-style file names with drive letters.
Jim Meyering 3bc1224a 1998-12-07T06:25:54 (dir_name): Rename from dirname. Make argument `const'. Include "dirname.h"
Jim Meyering cf42d3e5 1998-12-07T03:12:10 ansideclify
Jim Meyering 67f394c1 1998-03-15T11:09:10 Use #if, not #ifdef with HAVE_ macros
Jim Meyering 23fa298d 1998-02-22T08:21:07 revert most of last delta, but leave cppi/copyright changes
Jim Meyering ec4c2552 1998-02-19T21:31:06 (dirname): Include ctype.h. [IN_CTYPE_DOMAIN]: Define. [ISALPHA]: Define. [MSDOS]: Add support for DOS-style file names with drive letters. Based on a patch from Eli Zaretskii.
Jim Meyering 6d8337bf 1996-07-15T03:36:16 update FSF address in copyright
Jim Meyering 2516905b 1994-10-20T16:16:54 merge with 3.9p
Jim Meyering 300424a2 1994-10-02T05:43:03 merge with 3.9h
Jim Meyering a89ae060 1993-10-12T20:24:09 merge with 3.8.4c
Jim Meyering 92a0e357 1993-10-06T16:44:42 merge with 3.8.3b
Jim Meyering b0657895 1993-03-29T05:09:24 merge with 3.4.1
Jim Meyering 642b12f9 1993-03-28T16:23:28 [rindex]: Don't redefine.
Jim Meyering d87c3946 1992-10-31T20:42:48 Initial revision