mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
skin_engine minor refactoring struct alignment No Functional Changes
Move some elements around to save 720 bytes in the skin engine with cabbie saves some code manipulating the skin_helpers arrays in skin_engine eliminate conditionals checking for pre/post process functions using a dummy fn(), consolidate pre/post process into a single function adding a bool preprocess to indicate stage Change-Id: Id2df4706b73e9025c7300be135dc02e135e587fe
This commit is contained in:
parent
f1010005b0
commit
68d4fd0e5b
6 changed files with 49 additions and 43 deletions
|
@ -107,15 +107,14 @@ struct skin_tag_parameter
|
|||
DEFAULT
|
||||
} type;
|
||||
|
||||
char type_code;
|
||||
|
||||
union
|
||||
{
|
||||
int number;
|
||||
OFFSETTYPE(char*) text;
|
||||
OFFSETTYPE(struct skin_element*) code;
|
||||
} data;
|
||||
|
||||
char type_code;
|
||||
|
||||
} data;
|
||||
};
|
||||
|
||||
/* Defines an element of a SKIN file,
|
||||
|
@ -151,7 +150,7 @@ struct skin_element
|
|||
|
||||
enum skin_cb_returnvalue
|
||||
{
|
||||
CALLBACK_ERROR = -666,
|
||||
CALLBACK_ERROR = -128,
|
||||
FEATURE_NOT_AVAILABLE,
|
||||
CALLBACK_OK = 0,
|
||||
/* > 0 reserved for future use */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue