struct match_list {
struct match *first;
struct match **last;
- int count;
int unmatched_count;
struct match *unmatched_next;
int unmatched_eof;
struct entry_list {
struct match_file *first;
struct match_file **last;
- int count;
};
struct id_array {
{
list->first = NULL;
list->last = &(list->first);
- list->count = 0;
}
static void
{
*list->last = m;
list->last = &(m->next);
- list->count++;
list->unmatched_count++;
}
{
list->first = NULL;
list->last = &(list->first);
- list->count = 0;
}
static void
{
*list->last = file;
list->last = &(file->next);
- list->count++;
}
static int
}
/* If there is no exclusion list, include the file. */
- if (a->exclusion_entry_list.count == 0)
+ if (a->exclusion_entry_list.first == NULL)
return (0);
#if defined(_WIN32) && !defined(__CYGWIN__)
return (1);
}
- if (a->inclusion_unames.count) {
+ if (a->inclusion_unames.first != NULL) {
#if defined(_WIN32) && !defined(__CYGWIN__)
r = match_owner_name_wcs(a, &(a->inclusion_unames),
archive_entry_uname_w(entry));
return (r);
}
- if (a->inclusion_gnames.count) {
+ if (a->inclusion_gnames.first != NULL) {
#if defined(_WIN32) && !defined(__CYGWIN__)
r = match_owner_name_wcs(a, &(a->inclusion_gnames),
archive_entry_gname_w(entry));