aboutsummaryrefslogtreecommitdiffstats
path: root/lib/path-concat.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2005-06-02Use "file name" when talking about file names, instead of "filename"Paul Eggert1-126/+0
or "path", as per the GNU coding standards. As part of this, rename makepath.c to mkdir-p.c, and path-concat.c to filenamecat.c, and likewise for the .h files.
2005-05-14Correct cpp indentationJim Meyering1-2/+2
2005-05-14Update FSF postal mail address.Jim Meyering1-1/+1
2005-01-25Don't include assert.h.Jim Meyering1-5/+4
(path_concat): Remove assertion that would have triggered for ABASE starting with more than one slash. Reported by Andreas Schwab.
2005-01-25(path_concat): Set *BASE_IN_RESULTJim Meyering1-3/+43
properly when ABASE is an absolute file name. Correct the description of this function. Include <assert.h>. Add an assertion and a test driver. This fixes a bug introduced on 2004-07-02.
2004-07-05(path_concat): Improve comment. From Paul Eggert.Jim Meyering1-3/+3
2004-07-04(mempcpy): Don't define if a system header defines it.Jim Meyering1-61/+38
Don't include stdio.h, stdlib.h, unistd.h, strdup.h. (longest_relative_suffix): New function. (path_concat): Use it. Assume first argument is not NULL. Port to DOS. Omit redundant separators. Report an error instead of returning NULL. Use mempcpy instead of memcpy. (xpath_concat): Remove: not declared or used.
2004-06-30(FILE_SYSTEM_PREFIX_LEN): Renamed fromJim Meyering1-1/+1
FILESYSTEM_PREFIX_LEN. All uses changed.
2004-04-04Sync from gnulib.Jim Meyering1-6/+5
2003-09-10Include <stdlib.h>, <string.h> unconditionally.Jim Meyering1-21/+3
2002-02-23(xpath_concat): Reorder code to pacifyJim Meyering1-4/+6
compilers that don't know that xalloc_die never returns.
2001-05-12(DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN, ISSLASH): Remove; now in dirname.h.Jim Meyering1-20/+10
(path_concat): Use base_len to compute base length, not strlen; this means we cannot rely on memcpy to null-terminate.
2001-03-13(path_concat) [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]:Jim Meyering1-4/+8
Don't insert a backslash when concatenating e.g., `C:' and `foo'. From Bruno Haible.
2000-12-04Also include memory.h, stdlib.h, unistd.h if appropriate.Jim Meyering1-1/+14
2000-12-04[!HAVE_DECL_MALLOC]: Declare malloc.Jim Meyering1-0/+6
2000-06-21(path_concat): Don't access dir[-1] if dir is the empty string.Jim Meyering1-4/+7
2000-04-29Declare strdup only if it's not defined.Jim Meyering1-0/+2
2000-04-05Declare strdup.Jim Meyering1-1/+2
1999-09-26(DIRECTORY_SEPARATOR): Define.Jim Meyering1-13/+52
(ISSLASH): Define. (path_concat): Allow parameter DIR to be NULL. (xpath_concat): New function. From Akim Demaille.
1998-12-07ansideclifyJim Meyering1-4/+1
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering1-3/+3
1997-12-25Include <string.h> if available.Jim Meyering1-0/+3
1997-11-19revert a mempcpy to memcpyJim Meyering1-1/+1
1997-11-12(path_concat): Use mempcpy, not stpcpy.Jim Meyering1-7/+15
1996-10-01(path_concat): Use K&R style function definition.Jim Meyering1-1/+4
1996-08-19.Jim Meyering1-0/+58