pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2020-05-03
2020-05-03 14:00:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>
51405e53522cc0ecc58e3017afcffd39f603081b (
6
lines) (+
5
/-
1
)
[
Show
|
Annotate
]
Branch:
master
Pike.ProxyFactory: Avoid name clash.
1852:
union idptr ptr; int j; struct svalue *cached;
+
struct pike_string *var_string = NULL;
int var_flags = ID_LOCAL; ref_push_program(p);
1906:
push_string(make_shared_static_string("proxied_obj\0", 12, eightbit)); var_flags = ID_LOCAL|ID_PROTECTED|ID_PRIVATE|ID_HIDDEN; }
+
var_string = Pike_sp[-1].u.string;
type_stack_mark(); push_object_type(0, p->id); fun_type = pop_unfinished_type();
-
define_variable(
Pike
_
sp[-1].u.
string, fun_type, var_flags);
+
define_variable(
var
_string, fun_type, var_flags);
free_type(fun_type); pop_stack();
1919:
struct identifier *id; if (ref->id_flags & ID_HIDDEN) continue; id = ID_FROM_PTR(p, ref);
+
if (id->name == var_string) continue; /* Reserved. */
if (IDENTIFIER_IS_ALIAS(id->identifier_flags)) { /* Handle in second pass. */ yyerror("Aliases not supported (yet).");