summaryrefslogtreecommitdiff
path: root/apps/gui/wps_parser.c (follow)
Commit message (Collapse)AuthorAge
...
* RTC tags for the WPS: Accept FS#6998 and FS#7001 by Alexander Levin with ↵Nicolas Pennequin2007-04-10
| | | | | | | | | | changes by me. CUSTOM WPS FILES NEED TO BE UPDATED ! The RTC tags are now atomic, i.e. instead of using one tag with the format (e.g. %cd m yc), we use several separate tags, one for each value (e.g. %cd %cm %cy). Also, %cP produces an uppercase AM/PM indicator and %cp a lowercase one, which is the opposite from what they did before. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13093 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#7000 by Dave Hooper: Fix scrolling line behaviour for dynamic tags ↵Nicolas Pennequin2007-04-09
| | | | | | (e.g. when a line with info about the next track didn't scroll) and fix some incorrect refreshing flags. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13081 a1c6a512-1295-4272-9138-f99709370657
* Skip leading UTF8 BOM if present. Fixes the first line of the WPS not being ↵Nicolas Pennequin2007-04-08
| | | | | | understood as a comment when it is one. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13074 a1c6a512-1295-4272-9138-f99709370657
* Oops, this shouldn't have been removed (fix red).Nicolas Pennequin2007-04-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13066 a1c6a512-1295-4272-9138-f99709370657
* FS#6991. Patch by Alexander Levin, modified by me:Nicolas Pennequin2007-04-08
| | | | | | | | * Reorganisation of the WPS data structure with line and subline structs. This allows us to use sublines more sparingly, so it should save some memory. Also it removes the need for the "End Of Line" token. Overall, the data structure and the code are simplified and gain in clarity. * Some code improvements and added comments. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13065 a1c6a512-1295-4272-9138-f99709370657
* This time I hope I got it right! Basically, remove what the previous commit ↵Nicolas Pennequin2007-04-06
| | | | | | 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
* Better handling of subline timeout values : All values are set to the ↵Nicolas Pennequin2007-04-06
| | | | | | | | | | default before another value is found by the parser. No more resetting to the default value at displaying time (this caused problems especially noticeable on the DancePuffDuo WPS). Changing the values with conditionals is still possible but only strictly positive tiemout values are accepted now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13045 a1c6a512-1295-4272-9138-f99709370657
* * Fix the bug where subline separators were read as part of a string.Nicolas Pennequin2007-04-05
| | | | | | | * Some cosmetic code changes, no other functional change (add a comment and rename some variables). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13034 a1c6a512-1295-4272-9138-f99709370657
* Rearrange struct wps_tag to avoid padding. Hopefully save some bytes.Dan Everton2007-04-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13033 a1c6a512-1295-4272-9138-f99709370657
* Allow subline timeout values to be changed dynamically in the WPS (e.g. by ↵Nicolas Pennequin2007-04-05
| | | | | | using conditionals). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13026 a1c6a512-1295-4272-9138-f99709370657
* * Make some private variables 'static'.Nicolas Pennequin2007-04-04
| | | | | | | * Fix the pitch tag and allow it to be used on all targets except the Archos Player. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13020 a1c6a512-1295-4272-9138-f99709370657
* Introducing the WPS tokenizer !Nicolas Pennequin2007-04-04
When a WPS file is loaded, it is parsed to an array of tokens, which allows more efficient displaying. More info on the tracker entry : FS #6862. The parsing code is completely independant and is all in wps_parser.c. The displaying part stays in gwps-common.c. Debugging code is provided (with the right ifdefs) and is disabled by default. Overall, the code should be easier to read and maintain. Adding new WPS tags is made quite trivial. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13019 a1c6a512-1295-4272-9138-f99709370657