diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-25 17:09:05 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-06-25 17:09:05 +0000 |
commit | 58f99c4764f6c26e11dc30d01ddc0b6e18a1fbfc (patch) | |
tree | a1add87e3735bd6b392704f9f55e2992e4001385 /src/parse/properties/utils.h | |
parent | d4b1afb12a469eaa368f5c77f5c21578010bd527 (diff) | |
download | libcss-58f99c4764f6c26e11dc30d01ddc0b6e18a1fbfc.tar.gz libcss-58f99c4764f6c26e11dc30d01ddc0b6e18a1fbfc.tar.bz2 |
Factor comma-separated list parsing out of voice-family parser
svn path=/trunk/libcss/; revision=7980
Diffstat (limited to 'src/parse/properties/utils.h')
-rw-r--r-- | src/parse/properties/utils.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/parse/properties/utils.h b/src/parse/properties/utils.h index c04a2aa..86a90f5 100644 --- a/src/parse/properties/utils.h +++ b/src/parse/properties/utils.h @@ -16,6 +16,7 @@ css_error parse_colour_specifier(css_language *c, css_error parse_named_colour(css_language *c, lwc_string *data, uint32_t *result); css_error parse_hash_colour(lwc_string *data, uint32_t *result); + css_error parse_unit_specifier(css_language *c, const parserutils_vector *vector, int *ctx, uint32_t default_unit, @@ -23,4 +24,16 @@ css_error parse_unit_specifier(css_language *c, css_error parse_unit_keyword(const char *ptr, size_t len, css_unit *unit); +css_error comma_list_length(css_language *c, + const parserutils_vector *vector, int *ctx, + const css_token *token, + bool (*reserved)(css_language *c, const css_token *ident), + uint32_t *size); +css_error comma_list_to_bytecode(css_language *c, + const parserutils_vector *vector, int *ctx, + const css_token *token, + bool (*reserved)(css_language *c, const css_token *ident), + uint16_t (*get_value)(css_language *c, const css_token *token), + uint8_t **bytecode); + #endif |