pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2019-09-10
2019-09-10 11:45:58 by Henrik Grubbström (Grubba) <grubba@grubba.org>
e01eb917099cb1edf41c4e08c7e3fe951af4f613 (
9
lines) (+
7
/-
2
)
[
Show
|
Annotate
]
Branch:
master
Compiler: Fixed type for generators.
817:
if ($1 & ID_GENERATOR) { /* Adjust the type to be a function that returns
-
* a function(mixed|void, function(mixed|void...:void):X).
+
* a function(mixed|void, function(mixed|void...:void)
|void
:X).
*/ push_type(T_VOID); push_type(T_MANY); push_type(T_VOID); push_type(T_VOID);
-
+
push_type(T_VOID);
push_type(T_MIXED); push_type(T_OR); push_type(T_MANY);
-
+
push_type(T_OR);
push_type(T_FUNCTION); push_type(T_VOID);
953:
} /* Adjust the type to be a function that returns
-
* a function(mixed|void, function(mixed|void...:void):X).
+
* a function(mixed|void, function(mixed|void...:void)
|void
:X).
*/ push_type(T_VOID); push_type(T_MANY); push_type(T_VOID); push_type(T_VOID);
-
+
push_type(T_VOID);
push_type(T_MIXED); push_type(T_OR); push_type(T_MANY);
-
+
push_type(T_OR);
push_type(T_FUNCTION); push_type(T_VOID);