Removed double NAME entry.
[AROS.git] / compiler / autoinit / programentries.c
blob88509193d9c34803b085abc0b7bd0ebf070f4c85
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(struct ExecBase *SysBase)
20 void (*entry_func)(struct ExecBase *SysBase);
22 entry_func = SETNAME(PROGRAM_ENTRIES)[__startup_entry_pos];
23 if (entry_func)
25 __startup_entry_pos++;
26 entry_func(SysBase);