From: Jim Meyering Date: Sat, 29 May 2004 21:57:27 +0000 (+0000) Subject: (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Define. X-Git-Tag: v5.3.0~1484 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38499a7a5496d1be16c75842d20a6aa4a914744a;p=thirdparty%2Fcoreutils.git (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Define. --- diff --git a/lib/dirname.h b/lib/dirname.h index 62da37dc9a..f678d97e25 100644 --- a/lib/dirname.h +++ b/lib/dirname.h @@ -1,6 +1,6 @@ /* Take file names apart into directory and base names. - Copyright (C) 1998, 2001, 2003 Free Software Foundation, Inc. + Copyright (C) 1998, 2001, 2003, 2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -33,6 +33,9 @@ # define FILESYSTEM_PREFIX_LEN(Filename) 0 # endif +# define IS_ABSOLUTE_FILE_NAME(Name) (ISSLASH (*Name)) +# define IS_RELATIVE_FILE_NAME(Name) ( ! IS_ABSOLUTE_FILE_NAME (Name)) + char *base_name (char const *path); char *dir_name (char const *path); size_t base_len (char const *path);