(IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Define.
authorJim Meyering <jim@meyering.net>
Sat, 29 May 2004 21:57:27 +0000 (21:57 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 29 May 2004 21:57:27 +0000 (21:57 +0000)
lib/dirname.h

index 62da37d..f678d97 100644 (file)
@@ -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);