1
0
Fork 0
forked from len0rd/rockbox

fix FS#10674 - make skin debugger count the lines correctly so the line number in the output is actually useful!

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23825 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2009-12-03 05:36:23 +00:00
parent e83e2eceba
commit 58ca43dc9d

View file

@ -515,7 +515,6 @@ static bool skin_start_new_line(struct skin_viewport *vp, int curr_token)
curr_line = line;
if (!vp->lines)
vp->lines = line;
line_number++;
return true;
}
@ -1491,7 +1490,7 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr, bool debug)
int ret;
int max_tokens = TOKEN_BLOCK_SIZE;
size_t buf_free = 0;
line_number = 1;
line_number = 0;
level = -1;
/* allocate enough RAM for a reasonable skin, grow as needed.
@ -1637,6 +1636,7 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr, bool debug)
fail = PARSE_FAIL_LIMITS_EXCEEDED;
break;
}
line_number++;
break;