forked from len0rd/rockbox
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
This commit is contained in:
parent
4e0f7f6517
commit
fc3335584b
1 changed files with 9 additions and 2 deletions
|
@ -18,9 +18,9 @@ int dump_arg(FILE* out, const char* start, int count, bool close)
|
||||||
{
|
{
|
||||||
if (count > 1)
|
if (count > 1)
|
||||||
{
|
{
|
||||||
printf(",");
|
PUTCH(out, ',');
|
||||||
} else if (close) {
|
} else if (close) {
|
||||||
printf(")");
|
PUTCH(out, ')');
|
||||||
}
|
}
|
||||||
count--;
|
count--;
|
||||||
} else {
|
} else {
|
||||||
|
@ -180,6 +180,13 @@ top:
|
||||||
}
|
}
|
||||||
in += parse_tag(out, in);
|
in += parse_tag(out, in);
|
||||||
}
|
}
|
||||||
|
else if (*in == '#')
|
||||||
|
{
|
||||||
|
while (*in != '\n')
|
||||||
|
{
|
||||||
|
PUTCH(out, *in++);
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
PUTCH(out, *in++);
|
PUTCH(out, *in++);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue