summaryrefslogtreecommitdiff
path: root/lib/dirname.c
AgeCommit message (Collapse)Author
2001-05-21(dir_name): Compute append_dot using path, not newpathJim Meyering
which is not yet declared.
2001-05-12(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.Jim Meyering
Include <string.h> instead of <stdlib.h>. Do not include <assert.h>; no longer needed. Include xalloc.h. (memrchr): Remove decl. (dir_name_r): Remove. (dir_len): Renamed from dirlen. All callers changed. Rewrite in terms of base_name, for simplicity and consistency. (dir_name): Never return NULL. All callers changed. Do not include <stdlib.h> in test program; no longer needed. return 0; is fine for test program.
2000-12-07convert a > expression to the equivalent < oneJim Meyering
2000-12-07(FILESYSTEM_PREFIX_LEN): Define.Jim Meyering
(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.
2000-12-05(dir_name_r): Add `const' in a few local declarations.Jim Meyering
2000-11-30(dir_name_r): Fix typo: int -> size_t.Jim Meyering
2000-10-21tweak commentJim Meyering
2000-10-21(dir_name_r): New function, factored out of dir_name.Jim Meyering
(dir_name): Use dir_name_r.
2000-10-21(memrchr): Declare if necessary.Jim Meyering
(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.
2000-08-01(ISSLASH): Define.Jim Meyering
(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.
2000-07-29(dir_name): Use __MSDOS__ in favor of MSDOS.Jim Meyering
2000-07-29remove prematurely-added ISSLASH definitionJim Meyering
2000-07-29(dir_name): Assert that there are no trailing slashes.Jim Meyering
2000-07-29(dir_name) [MSDOS]: Declare `lim' to be const.Jim Meyering
2000-07-09update copyright dateJim Meyering
2000-01-22(dir_name): Support for DOS-style file names with drive letters.Jim Meyering
1998-12-07(dir_name): Rename from dirname.Jim Meyering
Make argument `const'. Include "dirname.h"
1998-12-07ansideclifyJim Meyering
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering
1998-02-22revert most of last delta, but leave cppi/copyright changesJim Meyering
1998-02-19(dirname): Include ctype.h.Jim Meyering
[IN_CTYPE_DOMAIN]: Define. [ISALPHA]: Define. [MSDOS]: Add support for DOS-style file names with drive letters. Based on a patch from Eli Zaretskii.
1996-07-15update FSF address in copyrightJim Meyering
1994-10-20merge with 3.9pJim Meyering
1994-10-02merge with 3.9hJim Meyering
1993-10-12merge with 3.8.4cJim Meyering
1993-10-06merge with 3.8.3bJim Meyering
1993-03-29merge with 3.4.1Jim Meyering
1993-03-28[rindex]: Don't redefine.Jim Meyering
1992-10-31Initial revisionJim Meyering