(DOT_OR_DOTDOT): New definition (moved here from remove.c.).

This commit is contained in:
Jim Meyering committed 1998-11-30 03:01:24 +00:00
1 parent 9d7c18290e
commit 1e422ea7ec
1 file changed
+4
+4
View File
@@ -220,3 +220,7 @@ off_t lseek ();
#define SAME_INODE(Stat_buf_1, Stat_buf_2) \
((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
&& (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
#define DOT_OR_DOTDOT(Basename) \
(Basename[0] == '.' && (Basename[1] == '\0' \
|| (Basename[1] == '.' && Basename[2] == '\0')))