fix: sync module types and replace WIP constants

* Types: Corrected stk.c to use stk_init_mod_func and stk_shutdown_mod_func instead of generic types.
* Errors: Replaced -3 placeholder with STK_MOD_INIT_FAILURE.
* Cleanup: Moved typedefs in module.c for consistency.
This commit is contained in:
2026-01-29 23:11:42 +01:00
parent 6567fceaec
commit aba10d7dac
2 changed files with 8 additions and 7 deletions
+4 -3
View File
@@ -5,11 +5,12 @@
#include <stdlib.h>
#include <string.h>
typedef void (*stk_module_func)(void);
typedef int (*stk_init_mod_func)(void);
typedef void (*stk_shutdown_mod_func)(void);
extern void **stk_handles;
extern stk_module_func *stk_inits;
extern stk_module_func *stk_shutdowns;
extern stk_init_mod_func *stk_inits;
extern stk_shutdown_mod_func *stk_shutdowns;
extern char (*stk_module_ids)[STK_MOD_ID_BUFFER];
extern size_t module_count;