pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2016-01-22
2016-01-22 18:23:00 by Henrik Grubbström (Grubba) <grubba@grubba.org>
648918e8f02b854f10c9a21f8ddfb5d524dd32b8 (
7
lines) (+
5
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
Compiler: Minor optimization.
2386:
yyerror("Can't define more variables after ..."); }
-
push_finished_type(Pike_compiler->compiler_frame->current_type);
+
if ($3) {
-
+
push_finished_type(Pike_compiler->compiler_frame->current_type);
push_type(T_ARRAY);
-
+
type = compiler_pop_type();
+
} else {
+
copy_pike_type(type, Pike_compiler->compiler_frame->current_type);
}
-
type=compiler_pop_type();
+
/* Add the identifier globally. * Note: Since these are the first identifiers (and references)