X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fas3%2Ftokenizer.yy.c;fp=lib%2Fas3%2Ftokenizer.yy.c;h=86a15392ba75a97e6c20bcb35858bf25014c3752;hb=71c8242a8242eeb6e8b6dcf57239550a6f35c88a;hp=9d58314f8f3d0160f1d2dee5207977c77f84cd6d;hpb=f5d494794ee290c1a0f1dc4d4b2156b04c9a5a97;p=swftools.git diff --git a/lib/as3/tokenizer.yy.c b/lib/as3/tokenizer.yy.c index 9d58314..86a1539 100644 --- a/lib/as3/tokenizer.yy.c +++ b/lib/as3/tokenizer.yy.c @@ -1831,18 +1831,18 @@ static inline void c() { current_column+=as3_leng; } -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()