Roxen.git/
server/
etc/
modules/
RXML.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2000-02-15
2000-02-15 02:19:33 by Martin Stjernholm <mast@lysator.liu.se>
18abb3a5a0bcb9839bda4fd43411db903a3b95d1 (
18
lines) (+
10
/-
8
)
[
Show
|
Annotate
]
Branch:
5.2
Fixed bug with runtime_tags.
Rev: server/etc/modules/RXML.pmod/module.pmod:1.57
2:
//! //! Created 1999-07-30 by Martin Stjernholm. //!
-
//! $Id: module.pmod,v 1.
56
2000/02/15 02:
12
:
08
mast Exp $
+
//! $Id: module.pmod,v 1.
57
2000/02/15 02:
19
:
33
mast Exp $
//! Kludge: Must use "RXML.refs" somewhere for the whole module to be //! loaded correctly.
848:
new_runtime_tags->remove_tags[tag] = 1; }
-
array
(Tag) get_runtime_tags()
-
//! Returns all currently active runtime tags.
+
multiset
(Tag) get_runtime_tags()
+
//! Returns all currently active runtime tags.
Don't be destructive
+
//! on the returned multiset.
{
-
array
(Tag) tags = runtime_tags;
+
multiset
(Tag) tags = runtime_tags;
if (new_runtime_tags) {
-
tags |=
indices (
new_runtime_tags->add_tags
)
;
-
tags -=
indices (
new_runtime_tags->remove_tags
)
;
+
tags |= new_runtime_tags->add_tags;
+
tags -= new_runtime_tags->remove_tags;
} return tags; }
963:
} }
-
array
(Tag) runtime_tags = (
{}
);
+
multiset
(Tag) runtime_tags = (
<>
);
class NewRuntimeTags {
2533:
} if (ctx->tag_set == tset)
-
foreach (ctx->runtime_tags, Tag tag)
+
foreach (
indices (
ctx->runtime_tags
)
, Tag tag)
p->add_runtime_tag (tag); }