diff options
Diffstat (limited to 'src/cssparser.hh')
-rw-r--r-- | src/cssparser.hh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cssparser.hh b/src/cssparser.hh index 4802510d..8be8c8a5 100644 --- a/src/cssparser.hh +++ b/src/cssparser.hh @@ -16,11 +16,9 @@ typedef enum { CSS_TK_CHAR, CSS_TK_END } CssTokenType; -/* Applies to symbol lengths and string literals. */ -#define CSS_MAX_STR_LEN 256 - class CssParser { private: + static const int maxStrLen = 256; CssContext *context; CssOrigin origin; @@ -28,7 +26,7 @@ class CssParser { int buflen, bufptr; CssTokenType ttype; - char tval[CSS_MAX_STR_LEN]; + char tval[maxStrLen]; bool within_block; bool space_separated; /* used when parsing CSS selectors */ |