summaryrefslogtreecommitdiff
path: root/lib/path-concat.c
AgeCommit message (Collapse)Author
2004-07-05(path_concat): Improve comment. From Paul Eggert.Jim Meyering
2004-07-04(mempcpy): Don't define if a system header defines it.Jim Meyering
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 Meyering
FILESYSTEM_PREFIX_LEN. All uses changed.
2004-04-04Sync from gnulib.Jim Meyering
2003-09-10Include <stdlib.h>, <string.h> unconditionally.Jim Meyering
2002-02-23(xpath_concat): Reorder code to pacifyJim Meyering
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 Meyering
(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 Meyering
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 Meyering
2000-12-04[!HAVE_DECL_MALLOC]: Declare malloc.Jim Meyering
2000-06-21(path_concat): Don't access dir[-1] if dir is the empty string.Jim Meyering
2000-04-29Declare strdup only if it's not defined.Jim Meyering
2000-04-05Declare strdup.Jim Meyering
1999-09-26(DIRECTORY_SEPARATOR): Define.Jim Meyering
(ISSLASH): Define. (path_concat): Allow parameter DIR to be NULL. (xpath_concat): New function. From Akim Demaille.
1998-12-07ansideclifyJim Meyering
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering
1997-12-25Include <string.h> if available.Jim Meyering
1997-11-19revert a mempcpy to memcpyJim Meyering
1997-11-12(path_concat): Use mempcpy, not stpcpy.Jim Meyering
1996-10-01(path_concat): Use K&R style function definition.Jim Meyering
1996-08-19.Jim Meyering