forked from len0rd/rockbox
Theme Editor: Committed FS#11477 to add a DECIMAL parameter type in the parser and adapt the Theme Editor to accomodate the change by Johnathan Gordon. Fixed bug in the parser caused by the patch (error was thrown on zero value) and adapted tag rendering for new format
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27426 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
387af97a26
commit
15488a00ea
10 changed files with 107 additions and 50 deletions
|
|
@ -70,6 +70,9 @@ void skin_error(enum skin_errorcode error)
|
|||
case INT_EXPECTED:
|
||||
error_message = "Expected integer";
|
||||
break;
|
||||
case DECIMAL_EXPECTED:
|
||||
error_message = "Expected decimal";
|
||||
break;
|
||||
case SEPERATOR_EXPECTED:
|
||||
error_message = "Expected argument seperator";
|
||||
break;
|
||||
|
|
@ -236,8 +239,13 @@ void skin_debug_params(int count, struct skin_tag_parameter params[])
|
|||
printf("[%s]", params[i].data.text);
|
||||
break;
|
||||
|
||||
case NUMERIC:
|
||||
printf("[%d]", params[i].data.numeric);
|
||||
case INTEGER:
|
||||
printf("[%d]", params[i].data.number);
|
||||
break;
|
||||
|
||||
case DECIMAL:
|
||||
printf("[%d.%d]", params[i].data.number/10,
|
||||
params[i].data.number%10);
|
||||
break;
|
||||
|
||||
case CODE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue