diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-15 21:21:15 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-03-15 21:21:15 +0100 |
commit | 22d0d7056206e3158fe6cdbe82c9508b2f41da29 (patch) | |
tree | cb2a425bdf4ede9f198c27e85a47ac8cec2c541c /src/cssparser.hh | |
parent | f68785a65aed9ce40d9aec5fbf7f9cec3af1b384 (diff) |
make CSS_MAX_STR_LEN a static const integer
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 */ |