pike.git/
src/
program.c
Branch:
Tag:
Non-build tags
All tags
No tags
2013-04-28
2013-04-28 20:04:54 by Henrik Grubbström (Grubba) <grubba@grubba.org>
4c083b07bb820202dc259265060baef3717be788 (
5
lines) (+
2
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Compiler: Fixed a few bugs in reference_inherited_identifier().
4347:
if (!state) state = Pike_compiler;
-
p =
Pike_compiler
->new_program;
+
p =
state
->new_program;
/* FIXME: This loop could be optimized by advancing by the number * of inherits in the inherit. But in that case the loop
4355:
*/ for (e = p->num_inherits; e--;) { if (p->inherits[e].inherit_level != 1) continue;
-
if (!p->inherits[e].name) continue;
-
+
if (inherit && (inherit != p->inherits[e].name)) continue; id = low_reference_inherited_identifier(state, e, name, SEE_PROTECTED);