summaryrefslogtreecommitdiff
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
parent4e0f7f6517030c722fb51b50a499fc20e6085754 (diff)
downloadrockbox-fc3335584b973ffa52499436d1f2ac2b5cdc8bec.tar.gz
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
-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)
18 { 18 {
19 if (count > 1) 19 if (count > 1)
20 { 20 {
21 printf(","); 21 PUTCH(out, ',');
22 } else if (close) { 22 } else if (close) {
23 printf(")"); 23 PUTCH(out, ')');
24 } 24 }
25 count--; 25 count--;
26 } else { 26 } else {
@@ -180,6 +180,13 @@ top:
180 } 180 }
181 in += parse_tag(out, in); 181 in += parse_tag(out, in);
182 } 182 }
183 else if (*in == '#')
184 {
185 while (*in != '\n')
186 {
187 PUTCH(out, *in++);
188 }
189 }
183 else 190 else
184 { 191 {
185 PUTCH(out, *in++); 192 PUTCH(out, *in++);