Updated PCI IDs to latest snapshot.
[tangerine.git] / compiler / autoinit / functions.c
blob54200a0b2c3f9374af8989fc05b6080d968882da
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: autoinit library - functions sets handling
6 Lang: english
7 */
9 #include <aros/symbolsets.h>
10 #include <aros/debug.h>
12 #define DEBUG 0
13 int set_call_funcs(const void *set[], int direction, int test_fail)
15 int pos, (*func)(void);
17 D(bug("entering set_call_funcs() - %p\n", set));
21 ForeachElementInSet(set, direction, pos, func)
23 bug("pos = %d, func = %p\n", pos, func);
27 ForeachElementInSet(set, direction, pos, func)
29 if (test_fail)
31 if (!(*func)())
32 return 0;
34 else
36 (void)(*func)();
40 return 1;