summaryrefslogtreecommitdiffstats
path: root/utils/skinupdater/skinupdater.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2010-05-27 15:55:39 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2010-05-27 15:55:39 +0000
commitfc3335584b973ffa52499436d1f2ac2b5cdc8bec (patch)
tree8c49e6e056b34ccb1d08e2cbeb6ca487b325f3b1 /utils/skinupdater/skinupdater.c
parent4e0f7f6517030c722fb51b50a499fc20e6085754 (diff)
downloadrockbox-fc3335584b973ffa52499436d1f2ac2b5cdc8bec.tar.gz
rockbox-fc3335584b973ffa52499436d1f2ac2b5cdc8bec.tar.bz2
rockbox-fc3335584b973ffa52499436d1f2ac2b5cdc8bec.zip
handle # comments and fix some printfs which should be fprintf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26334 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/skinupdater/skinupdater.c')
-rw-r--r--utils/skinupdater/skinupdater.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/skinupdater/skinupdater.c b/utils/skinupdater/skinupdater.c
index a5e79fda96..a7f7cfd96a 100644
--- a/utils/skinupdater/skinupdater.c
+++ b/utils/skinupdater/skinupdater.c
@@ -18,9 +18,9 @@ int dump_arg(FILE* out, const char* start, int count, bool close)
{
if (count > 1)
{
- printf(",");
+ PUTCH(out, ',');
} else if (close) {
- printf(")");
+ PUTCH(out, ')');
}
count--;
} else {
@@ -180,6 +180,13 @@ top:
}
in += parse_tag(out, in);
}
+ else if (*in == '#')
+ {
+ while (*in != '\n')
+ {
+ PUTCH(out, *in++);
+ }
+ }
else
{
PUTCH(out, *in++);