You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
469 B
30 lines
469 B
16 years ago
|
#include "exclude.h"
|
||
|
|
||
|
void
|
||
16 years ago
|
iso_exclude_add_path(struct iso_hash_table *table, const char *path)
|
||
16 years ago
|
{
|
||
|
if (!path)
|
||
|
return;
|
||
|
|
||
16 years ago
|
table->num += iso_hash_insert(table->table, path);
|
||
16 years ago
|
}
|
||
|
|
||
|
void
|
||
16 years ago
|
iso_exclude_empty(struct iso_hash_table *table)
|
||
16 years ago
|
{
|
||
16 years ago
|
if (!table->num)
|
||
16 years ago
|
return;
|
||
|
|
||
16 years ago
|
iso_hash_empty(table->table);
|
||
|
table->num=0;
|
||
16 years ago
|
}
|
||
|
|
||
|
int
|
||
16 years ago
|
iso_exclude_lookup(struct iso_hash_table *table, const char *path)
|
||
16 years ago
|
{
|
||
16 years ago
|
if (!table->num || !path)
|
||
16 years ago
|
return 0;
|
||
|
|
||
16 years ago
|
return iso_hash_lookup(table->table, path);
|
||
16 years ago
|
}
|