X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fas3%2Ftokenizer.lex;h=732c97f7b05a9a480001cc22b7f51ad3a76895b6;hp=7752bd524e688a6c4fba10882f4445eea7cbb131;hb=71c8242a8242eeb6e8b6dcf57239550a6f35c88a;hpb=f5d494794ee290c1a0f1dc4d4b2156b04c9a5a97 diff --git a/lib/as3/tokenizer.lex b/lib/as3/tokenizer.lex index 7752bd5..732c97f 100644 --- a/lib/as3/tokenizer.lex +++ b/lib/as3/tokenizer.lex @@ -516,18 +516,18 @@ static inline void c() { current_column+=yyleng; } -static trie_t*namespaces = 0; -void tokenizer_register_namespace(const char*id) +trie_t*active_namespaces = 0; +/*void tokenizer_register_namespace(const char*id) { - trie_put(&namespaces, id); + trie_put(namespaces, id, 0); } void tokenizer_unregister_namespace(const char*id) { trie_remove(namespaces, id); -} +}*/ static inline tokenizer_is_namespace(const char*id) { - return trie_lookup(namespaces, id); + return trie_contains(active_namespaces, id); } static inline int handleIdentifier()