summaryrefslogtreecommitdiff
path: root/src/lex/lex.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@netsurf-browser.org>2009-02-14 22:55:32 +0000
committerDaniel Silverstone <dsilvers@netsurf-browser.org>2009-02-14 22:55:32 +0000
commitf1f3155ef6f28fb8595920e5423336b39bba4ed0 (patch)
treef7016ea23c888285ac255d06a42a7205ecca48fe /src/lex/lex.h
parentd0d70a21234ce34ab606c403cdb205897ace0cbb (diff)
downloadlibcss-f1f3155ef6f28fb8595920e5423336b39bba4ed0.tar.gz
libcss-f1f3155ef6f28fb8595920e5423336b39bba4ed0.tar.bz2
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
Diffstat (limited to 'src/lex/lex.h')
-rw-r--r--src/lex/lex.h12
1 files changed, 8 insertions, 4 deletions
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 <libwapcaplet/libwapcaplet.h>
+
#include <libcss/errors.h>
#include <libcss/functypes.h>
#include <libcss/types.h>
#include <parserutils/input/inputstream.h>
-#include <parserutils/utils/hash.h>
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;