summaryrefslogtreecommitdiff
path: root/apps/gui/wps_parser.c
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-06 16:43:07 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-04-06 16:43:07 +0000
commit87e77ba466bbeecbbb7b6479318c0c69a9394c8d (patch)
tree4cf68904946b7711a526c935aeabd659f51b6717 /apps/gui/wps_parser.c
parentbcec79c3c137afd5d4cbced64167acc99db9608e (diff)
downloadrockbox-87e77ba466bbeecbbb7b6479318c0c69a9394c8d.zip
rockbox-87e77ba466bbeecbbb7b6479318c0c69a9394c8d.tar.gz
rockbox-87e77ba466bbeecbbb7b6479318c0c69a9394c8d.tar.bz2
rockbox-87e77ba466bbeecbbb7b6479318c0c69a9394c8d.tar.xz
This time I hope I got it right! Basically, remove what the previous commit about subline timeouts added and make the values be computed by a special function at display time. This should bring complete compatibility with the previous code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13047 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/wps_parser.c')
-rw-r--r--apps/gui/wps_parser.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/gui/wps_parser.c b/apps/gui/wps_parser.c
index 8a226e1..2a610bd 100644
--- a/apps/gui/wps_parser.c
+++ b/apps/gui/wps_parser.c
@@ -490,13 +490,6 @@ static int parse_subline_timeout(const char *wps_bufptr, struct wps_data *wps_da
if (have_tenth == false)
val *= 10;
- /* We only want to allow strictly positive timeout values */
- if (val <= 0)
- val = DEFAULT_SUBLINE_TIME_MULTIPLIER;
-
- int line = wps_data->num_lines;
- int subline = wps_data->num_sublines[line];
- wps_data->time_mult[line][subline] = val;
wps_data->tokens[wps_data->num_tokens].value.i = val;
return skip;
@@ -624,8 +617,6 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr)
data->num_tokens = 0;
char *current_string = data->string_buffer;
- data->time_mult[0][0] = DEFAULT_SUBLINE_TIME_MULTIPLIER;
-
while(wps_bufptr && *wps_bufptr && data->num_tokens < WPS_MAX_TOKENS
&& data->num_lines < WPS_MAX_LINES)
{
@@ -644,7 +635,6 @@ static bool wps_parse(struct wps_data *data, const char *wps_bufptr)
data->tokens[data->num_tokens++].type = WPS_TOKEN_SUBLINE_SEPARATOR;
subline = ++(data->num_sublines[data->num_lines]);
data->format_lines[data->num_lines][subline] = data->num_tokens;
- data->time_mult[data->num_lines][subline] = DEFAULT_SUBLINE_TIME_MULTIPLIER;
}
else
wps_bufptr += skip_end_of_line(wps_bufptr);
@@ -711,7 +701,6 @@ condlistend: /* close a conditional. sometimes we want to close them even when
if (data->num_lines < WPS_MAX_LINES)
{
data->format_lines[data->num_lines][0] = data->num_tokens;
- data->time_mult[data->num_lines][0] = DEFAULT_SUBLINE_TIME_MULTIPLIER;
}
break;