remove namespaces from tokens again when they go out of scope
[swftools.git] / lib / as3 / tokenizer.lex
index e103b25..9ac9607 100644 (file)
@@ -528,6 +528,10 @@ void tokenizer_register_namespace(const char*id)
 {
     trie_put(&namespaces, id);
 }
+void tokenizer_unregister_namespace(const char*id)
+{
+    trie_remove(namespaces, id);
+}
 static inline tokenizer_is_namespace(const char*id)
 {
     return trie_lookup(namespaces, id);