forked from len0rd/rockbox
Add a general-purpose parse_list function to parse a string containing a delimited list of items and adapt the parse_image_load() function in the WPS parser to use it. This function will also be used to parse the upcoming WPS %V viewport tag, but I'm committing it separately as these changes are unrelated to the viewport implementation itself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16728 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bb026334c0
commit
e92d2c51ed
6 changed files with 137 additions and 48 deletions
|
@ -110,7 +110,7 @@ void check_bootfile(bool do_rolo);
|
|||
void setvol(void);
|
||||
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
int hex_to_rgb(const char* hex);
|
||||
int hex_to_rgb(const char* hex, int* color);
|
||||
#endif
|
||||
|
||||
char* strrsplt(char* str, int c);
|
||||
|
@ -124,4 +124,7 @@ bool dir_exists(const char *path);
|
|||
*/
|
||||
char *strip_extension(char* buffer, int buffer_size, const char *filename);
|
||||
|
||||
/* A simplified scanf */
|
||||
const char* parse_list(const char *fmt, const char sep, const char* str, ...);
|
||||
|
||||
#endif /* MISC_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue