From f1f3155ef6f28fb8595920e5423336b39bba4ed0 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sat, 14 Feb 2009 22:55:32 +0000 Subject: Port libcss to libwapcaplet. It passes the tests, perhaps we need more of them. Lifetimes of lwc_string objects really need attention before we can consider this finished. svn path=/trunk/libcss/; revision=6517 --- src/lex/lex.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/lex/lex.h') diff --git a/src/lex/lex.h b/src/lex/lex.h index b2915fc..6d0249e 100644 --- a/src/lex/lex.h +++ b/src/lex/lex.h @@ -8,12 +8,13 @@ #ifndef css_lex_lex_h_ #define css_lex_lex_h_ +#include + #include #include #include #include -#include typedef struct css_lexer css_lexer; @@ -59,10 +60,13 @@ typedef enum css_token_type { typedef struct css_token { css_token_type type; - css_string data; + struct { + uint8_t *data; + size_t len; + } data; - const parserutils_hash_entry *idata; - const parserutils_hash_entry *ilower; + lwc_string *idata; + lwc_string *ilower; uint32_t col; uint32_t line; -- cgit v1.2.3