pike.git/
src/
mapping.c
Branch:
Tag:
Non-build tags
All tags
No tags
2015-06-04
2015-06-04 20:59:17 by Martin Karlgren <marty@roxen.com>
8775df20ef2b88d1fbef71bd3f93fa0ebd7c11f8 (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
8.1
count_memory: avoid visiting refs at all in negative lookahead mode.
2527:
void *extra) { visit_enter(md, T_MAPPING_DATA, extra);
-
switch (action) {
+
switch (action
& VISIT_MODE_MASK
) {
#ifdef PIKE_DEBUG default: Pike_fatal ("Unknown visit action %d.\n", action);
2540:
break; }
-
if ((md->ind_types | md->val_types) &
+
if (
!
(
action & VISIT_NO_REFS) &&
+
(
md->ind_types | md->val_types) &
(action & VISIT_COMPLEX_ONLY ? BIT_COMPLEX : BIT_REF_TYPES)) { int ind_ref_type = md->flags & MAPPING_WEAK_INDICES ? REF_TYPE_WEAK : REF_TYPE_NORMAL;
2559:
PMOD_EXPORT void visit_mapping (struct mapping *m, int action, void *extra) { visit_enter(m, T_MAPPING, extra);
-
switch (action) {
+
switch (action
& VISIT_MODE_MASK
) {
#ifdef PIKE_DEBUG default: Pike_fatal ("Unknown visit action %d.\n", action);