From 38499a7a5496d1be16c75842d20a6aa4a914744a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 29 May 2004 21:57:27 +0000 Subject: (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Define. --- lib/dirname.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/dirname.h b/lib/dirname.h index 62da37dc9..f678d97e2 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); -- cgit v1.2.3-54-g00ecf