Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: settings.c confuses me
From: Björn Stenberg (bjorn_at_haxx.se)
Date: 2003-03-24


TP Diffenbach wrote:
> How much code space do we use setting this up?

About 3500 bytes, as far as I can see. Again, it's all listed in the archos.map file.

> It seems we have a /lot/ of repetitive code.

Space is important, but code transparency even more so.

Think of it as abstraction: Using the config block directly in the code would result in very messy code and cementing of the config block format, since each change in the block would require changing all the source files that use the setting. By using an abstracted struct, the code that uses the settings do not need to be changed when (not if) we change the config block data layout.

-- 
Björn



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa