2 Copyright © 2009, The AROS Development Team. All rights reserved.
5 Desc: autoinit library - functions for handling the PROGRAM_ENTRIES symbolset
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
];
25 __startup_entry_pos
++;