Seperated LOADER_LOAD_DSC/LOADER_UNLOAD_DSC from LOADER_LOAD/LOADER_UNLOAD as the later is only used by the directory app. This saves 20 bytes of resident code space.
diff --git a/contiki-cc65/loader/loader-arch.c b/contiki-cc65/loader/loader-arch.c
index 0a5091f..95be07e 100644
--- a/contiki-cc65/loader/loader-arch.c
+++ b/contiki-cc65/loader/loader-arch.c
@@ -29,7 +29,7 @@
*
* This file is part of the Contiki desktop OS
*
- * $Id: loader-arch.c,v 1.7 2005/05/06 22:54:57 oliverschmidt Exp $
+ * $Id: loader-arch.c,v 1.8 2005/05/07 14:24:38 oliverschmidt Exp $
*
*/
@@ -40,9 +40,7 @@
#include "loader.h"
-#include "loader-arch.h"
-
-static struct mod_ctrl ctrl = {
+struct mod_ctrl ctrl = {
read /* Read from disk */
};
@@ -60,7 +58,7 @@
* Ullrich von Bassewitz.
*/
/*-----------------------------------------------------------------------------------*/
-static unsigned char
+unsigned char
load(const char *name)
{
unsigned char res;
@@ -115,15 +113,3 @@
return LOADER_OK;
}
/*-----------------------------------------------------------------------------------*/
-struct dsc *
-loader_arch_load_dsc(const char *name)
-{
- unsigned char r;
-
- r = load(name);
- if(r == MLOAD_OK) {
- return (struct dsc *)ctrl.module;
- }
- return NULL;
-}
-/*-----------------------------------------------------------------------------------*/