From 6b31f0eaae57409c267977a7d658f8900c510dfd Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 4 Aug 2008 23:04:59 +0000 Subject: For tokens where there's a possibility of case differences requiring case insensitive matching, intern lower cased versions of strings alongside the originals. svn path=/trunk/libcss/; revision=4902 --- src/lex/lex.c | 2 ++ src/lex/lex.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/lex') diff --git a/src/lex/lex.c b/src/lex/lex.c index 5fdcff4..8f85d25 100644 --- a/src/lex/lex.c +++ b/src/lex/lex.c @@ -1141,6 +1141,8 @@ start: t->type = CSS_TOKEN_EOF; t->data.ptr = NULL; t->data.len = 0; + t->lower.ptr = NULL; + t->lower.len = 0; t->col = lexer->currentCol; t->line = lexer->currentLine; lexer->escapeSeen = false; diff --git a/src/lex/lex.h b/src/lex/lex.h index 97a4a17..6bfba6d 100644 --- a/src/lex/lex.h +++ b/src/lex/lex.h @@ -51,6 +51,8 @@ typedef struct css_token { css_string data; + css_string lower; + uint32_t col; uint32_t line; } css_token; -- cgit v1.2.3