]> Dogcows Code - chaz/tar/commitdiff
(names_done): New function.
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 2 Oct 2003 10:28:30 +0000 (10:28 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 2 Oct 2003 10:28:30 +0000 (10:28 +0000)
src/common.h
src/names.c

index 9e1ec68fb00e0b76699fc6d0d22aa62c7663f051..9eb90541fb4ab7a3cdce94ac7647ccedaf14dc14 100644 (file)
@@ -560,6 +560,7 @@ void name_close (void);
 void name_gather (void);
 struct name *addname (char const *, int);
 int name_match (const char *);
+bool names_done (void);
 void names_notfound (void);
 void collect_and_sort_names (void);
 struct name *name_scan (const char *);
@@ -581,6 +582,7 @@ bool contains_dot_dot (char const *);
 int confirm (const char *, const char *);
 void request_stdin (const char *);
 void destroy_stat (struct tar_stat_info *);
+bool all_names_found (void);
 
 /* Module update.c.  */
 
index 04719d081c8e0151e7f74f21f0199a7da2553d1d..41d3476ec6cb05428c5e719e4edfe9155cbd5638 100644 (file)
@@ -595,6 +595,17 @@ name_match (const char *path)
     }
 }
 
+/* Returns true if all names from the namelist were processed */
+bool
+names_done ()
+{
+  struct name const *cursor;
+  for (cursor = namelist; cursor; cursor = cursor->next)
+    if (!cursor->found && !cursor->fake)
+      return false;
+  return true;
+}
+
 /* Print the names of things in the namelist that were not matched.  */
 void
 names_notfound (void)
This page took 0.027747 seconds and 4 git commands to generate.