git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove namespaces from tokens again when they go out of scope
[swftools.git]
/
lib
/
as3
/
tokenizer.lex
diff --git
a/lib/as3/tokenizer.lex
b/lib/as3/tokenizer.lex
index
e103b25
..
9ac9607
100644
(file)
--- a/
lib/as3/tokenizer.lex
+++ b/
lib/as3/tokenizer.lex
@@
-528,6
+528,10
@@
void tokenizer_register_namespace(const char*id)
{
trie_put(&namespaces, 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);
static inline tokenizer_is_namespace(const char*id)
{
return trie_lookup(namespaces, id);