cb22561995-10-11Fredrik Hübinette (Hubbe) /*\ ||| This file a part of uLPC, and is copyright by Fredrik Hubinette ||| uLPC is distributed as GPL (General Public License) ||| See the files COPYING and DISCLAIMER for more information. \*/
5267b71995-08-09Fredrik Hübinette (Hubbe) #include "module.h" #include "macros.h" #include "error.h" #include "modlist.h" struct module *current_module=module_list; void init_modules_efuns() { unsigned int e; for(e=0;e<NELEM(module_list);e++) { current_module=module_list+e; module_list[e].init_efuns(); } current_module=module_list; } void init_modules_programs() { unsigned int e; for(e=0;e<NELEM(module_list);e++) { current_module=module_list+e; module_list[e].init_programs(); } current_module=module_list; } void exit_modules() { int e; for(e=NELEM(module_list)-1;e>=0;e--) module_list[e].exit(); }