diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-15 02:59:34 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2007-04-15 02:59:34 +0000 |
commit | 2e1169bddaa424ae5eef36e2ec12e2a3cb0adc68 (patch) | |
tree | 6967092524e64d2365034073efef820b41d31a2d /apps/gui/gwps.h | |
parent | ac946416060c19eb6cfe9da3d1885baee329df30 (diff) | |
download | rockbox-2e1169bddaa424ae5eef36e2ec12e2a3cb0adc68.tar.gz rockbox-2e1169bddaa424ae5eef36e2ec12e2a3cb0adc68.zip |
* Make the WPS parser close open conditionals on new sublines and comments as well as new lines.
* Make the displaying code check for invalid conditional constructs in order to avoid some rare cases of infinite looping.
* Make the WPS parser check that it doesn't read more strings than it can.
* Increase the string buffer size (from 512 to 1024, to accomodate the TextBox WPS which uses a lot of unicode characters).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13162 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps.h')
-rw-r--r-- | apps/gui/gwps.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/gwps.h b/apps/gui/gwps.h index 7d20bc94cf..801a37902e 100644 --- a/apps/gui/gwps.h +++ b/apps/gui/gwps.h | |||
@@ -76,7 +76,7 @@ struct align_pos { | |||
76 | #define WPS_MAX_SUBLINES (WPS_MAX_LINES*3) | 76 | #define WPS_MAX_SUBLINES (WPS_MAX_LINES*3) |
77 | #define WPS_MAX_TOKENS 1024 | 77 | #define WPS_MAX_TOKENS 1024 |
78 | #define WPS_MAX_STRINGS 128 | 78 | #define WPS_MAX_STRINGS 128 |
79 | #define STRING_BUFFER_SIZE 512 | 79 | #define STRING_BUFFER_SIZE 1024 |
80 | #define WPS_MAX_COND_LEVEL 10 | 80 | #define WPS_MAX_COND_LEVEL 10 |
81 | 81 | ||
82 | #else | 82 | #else |