19 lines
338 B
C
19 lines
338 B
C
|
|
#include <debug.h>
|
|
|
|
#include <avl/avl.h>
|
|
|
|
#include "struct.h"
|
|
#include "foreach.h"
|
|
|
|
void truthtable_set_foreach(
|
|
const struct truthtable_set* this,
|
|
void (*foreach)(
|
|
truthtable_t))
|
|
{
|
|
for (struct avl_node_t* node = this->tree->head; node; node = node->next)
|
|
{
|
|
foreach(*(truthtable_t*) node->item);
|
|
}
|
|
}
|
|
|