aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dirname.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert1-87/+0
2006-03-26(dir_len): Determine when drive letters need a subsequent slash.Jim Meyering1-73/+39
Preserve // when it is special. (dir_name): Don't append dot when drive letter is absolute. [TEST_DIRNAME]: Move into a full-blown gnulib test.
2005-09-22Sync from gnulib.Paul Eggert1-1/+1
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert1-21/+21
in comments or local variable names.
2005-05-14Update FSF postal mail address.Jim Meyering1-1/+1
2004-08-02(dir_name): Use bool when appropriate.Paul Eggert1-1/+1
2004-06-30(FILE_SYSTEM_PREFIX_LEN): Renamed fromJim Meyering1-3/+5
FILESYSTEM_PREFIX_LEN. All uses changed.
2003-09-10Include <string.h> unconditionally.Jim Meyering1-5/+3
2003-04-04[TEST_DIRNAME]: Update build instructions for test.Jim Meyering1-3/+19
Add test-cases for DOS filenames. Declare program_name. (main): Set up program_name.
2001-05-21(dir_name): Compute append_dot using path, not newpathJim Meyering1-1/+1
which is not yet declared.
2001-05-12(FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.Jim Meyering1-108/+24
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 Meyering1-1/+1
2000-12-07(FILESYSTEM_PREFIX_LEN): Define.Jim Meyering1-25/+32
(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 Meyering1-8/+8
2000-11-30(dir_name_r): Fix typo: int -> size_t.Jim Meyering1-1/+1
2000-10-21tweak commentJim Meyering1-2/+4
2000-10-21(dir_name_r): New function, factored out of dir_name.Jim Meyering1-10/+20
(dir_name): Use dir_name_r.
2000-10-21(memrchr): Declare if necessary.Jim Meyering1-7/+72
(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 Meyering1-10/+27
(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 Meyering1-1/+1
2000-07-29remove prematurely-added ISSLASH definitionJim Meyering1-4/+0
2000-07-29(dir_name): Assert that there are no trailing slashes.Jim Meyering1-0/+8
2000-07-29(dir_name) [MSDOS]: Declare `lim' to be const.Jim Meyering1-2/+6
2000-07-09update copyright dateJim Meyering1-1/+1
2000-01-22(dir_name): Support for DOS-style file names with drive letters.Jim Meyering1-0/+9
1998-12-07(dir_name): Rename from dirname.Jim Meyering1-1/+3
Make argument `const'. Include "dirname.h"
1998-12-07ansideclifyJim Meyering1-2/+1
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering1-1/+1
1998-02-22revert most of last delta, but leave cppi/copyright changesJim Meyering1-16/+0
1998-02-19(dirname): Include ctype.h.Jim Meyering1-8/+24
[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 Meyering1-2/+2
1994-10-20merge with 3.9pJim Meyering1-5/+5
1994-10-02merge with 3.9hJim Meyering1-7/+0
1993-10-12merge with 3.8.4cJim Meyering1-2/+2
1993-10-06merge with 3.8.3bFILEUTILS-3_8_3bJim Meyering1-0/+11
1993-03-29merge with 3.4.1Jim Meyering1-1/+1
1993-03-28[rindex]: Don't redefine.Jim Meyering1-0/+2
1992-10-31Initial revisionJim Meyering1-0/+64