aboutsummaryrefslogtreecommitdiffstats
path: root/interpret.h
diff options
context:
space:
mode:
Diffstat (limited to 'interpret.h')
-rw-r--r--interpret.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/interpret.h b/interpret.h
index 228a3f3e..c652624a 100644
--- a/interpret.h
+++ b/interpret.h
@@ -225,6 +225,10 @@ top:
}
r = t2;
} else {
+ /* make sure stuff like NF, NR, are up to date */
+ if (t1 == symbol_table)
+ update_global_values();
+
r = *assoc_lookup(t1, t2);
}
DEREF(t2);
@@ -308,6 +312,7 @@ top:
else if ( t1 == symbol_table
&& ( (*lhs)->type == Node_var
|| (*lhs)->type == Node_var_new)) {
+ update_global_values(); /* make sure stuff like NF, NR, are up to date */
(*lhs)->type = Node_var; /* in case was Node_var_new */
lhs = & ((*lhs)->var_value); /* extra level of indirection */
}