path: root/apps/tree.h
diff options
authorThomas Martitz <>2010-03-03 23:20:32 +0000
committerThomas Martitz <>2010-03-03 23:20:32 +0000
commitf8edc325896c9c24d7f32f4861a0b0d2a8b9f4cd (patch)
treeb2682307d01fffb54dd68e54b8f2e2986fe6bcc6 /apps/tree.h
parente479853f1542616dab56817c8f5326364b663c7c (diff)
FS#10756 - Free unused init code
Introduce a new .init section for initialisation code, so that it can be copied to an area which is later overwritten before calling. The stack/bss can then overwrite that code, effectively freeing the code size that the initialisation routines need. Gives a few kB ram usage back. Only implemented for PP and as3525 so far. More targets could be added, as well as more functions. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/tree.h')
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tree.h b/apps/tree.h
index 3b31d02451..f3057e81e4 100644
--- a/apps/tree.h
+++ b/apps/tree.h
@@ -71,8 +71,8 @@ struct tree_context {
void tree_drawlists(void);
-void tree_mem_init(void);
-void tree_gui_init(void);
+void tree_mem_init(void) INIT_ATTR;
+void tree_gui_init(void) INIT_ATTR;
void get_current_file(char* buffer, int buffer_len);
void set_dirfilter(int l_dirfilter);
void set_current_file(char *path);