AROS_INT: oops - forgot to resolve a conflict
[AROS.git] / compiler / autoinit / programentries.c
blob3b4b3ffcfe87807077ad8bac9c5a00dde4299ec6
1 /*
2 Copyright © 2009, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: autoinit library - functions for handling the PROGRAM_ENTRIES symbolset
6 */
7 #include <aros/symbolsets.h>
9 DEFINESET(PROGRAM_ENTRIES);
11 static int __startup_entry_pos;
13 void __startup_entries_init(void)
15 __startup_entry_pos = 1;
18 void __startup_entries_next(void)
20 void (*entry_func)(void);
22 entry_func = SETNAME(PROGRAM_ENTRIES)[__startup_entry_pos];
23 if (entry_func)
25 __startup_entry_pos++;
26 entry_func();