X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fnames.c;h=46581e0738f5228ed542a8af4ee29e983766f44e;hb=f364d50661977d5db6df03470e85999a88ec5981;hp=04719d081c8e0151e7f74f21f0199a7da2553d1d;hpb=07286647fb7446a62e8690675797ba7426b0758b;p=chaz%2Ftar diff --git a/src/names.c b/src/names.c index 04719d0..46581e0 100644 --- a/src/names.c +++ b/src/names.c @@ -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->regexp || (!cursor->found && !cursor->fake)) + return false; + return true; +} + /* Print the names of things in the namelist that were not matched. */ void names_notfound (void)