From 4680b309e825db1d669b04056bc3cbdf273f5d80 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 1 Aug 2008 19:00:59 +0000 Subject: Only intern strings when we get a token from the lexer. Strings in tokens that have been pushed back have already been interned, so it's stupid to re-intern every time. This has required that the lexer permits its clients to modify the data members of the css_token object. That's fine, as it assumes nothing about them (they're basically just a window onto the internal lexer state, anyway). svn path=/trunk/libcss/; revision=4857 --- src/lex/lex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lex/lex.h') diff --git a/src/lex/lex.h b/src/lex/lex.h index b40aff3..2cdf7f1 100644 --- a/src/lex/lex.h +++ b/src/lex/lex.h @@ -61,7 +61,7 @@ void css_lexer_destroy(css_lexer *lexer); css_error css_lexer_setopt(css_lexer *lexer, css_lexer_opttype type, css_lexer_optparams *params); -css_error css_lexer_get_token(css_lexer *lexer, const css_token **token); +css_error css_lexer_get_token(css_lexer *lexer, css_token **token); #endif -- cgit v1.2.3