pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:4586:
/* NOTE: cur may never refer to an unlinked node. * cur may however refer to a detached node, or to sentinels. */ static struct List_struct *List__get_iterator_find_parent() { struct external_variable_context loc; loc.o = Pike_fp->current_object; loc.parent_identifier = Pike_fp->fun;
-
if (
loc.
parent_identifier == FUNCTION_BUILTIN) {
-
loc.
inherit =
loc.o->prog->inherits
-
+ loc.o->prog->num
_
inherits
-
1;
-
} else {
-
loc.inherit = INHERIT_FROM_INT(loc.o-
>
prog, loc.parent_identifier)
;
-
}
+
loc.inherit =
Pike
_
fp
->
context
;
find_external_context(&loc, 1); return (struct List_struct *)(loc.o->storage + loc.inherit->storage_offset); } INIT { add_ref(THIS->cur = List__get_iterator_find_parent()->head); THIS->ind = 0; }