pike.git/
src/
pike_types.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2022-07-04
2022-07-04 11:37:32 by Henrik Grubbström (Grubba) <grubba@grubba.org>
ecd33c8bd0f79bddd0e6c88aa3c12d2efde8d6fa (
10
lines) (+
10
/-
0
)
[
Show
|
Annotate
]
Branch:
master
Compiler
[Typechecker]
: Added operator PIKE_T_APPLY.
306:
* GET_RETURN fun type - Added in 8.1 * SET_CAR type type Added in 8.1 * SET_CDR type type Added in 8.1
+
* APPLY fun type arg type Added in 8.1
* * Note that the cdr of a FUNCTION is a valid FUNCTION for the rest of * the arguments.
13885:
case PIKE_T_GET_RETURN: res = new_get_return_type(arg1, 0); break;
+
case PIKE_T_APPLY:
+
{
+
struct call_state cs;
+
INIT_CALL_STATE(cs);
+
res = low_new_check_call(arg1, arg2, 0, &cs, NULL);
+
FREE_CALL_STATE(cs);
+
}
+
break;
case PIKE_T_FIND_LFUN: res = find_lfun_type(arg1, (ptrdiff_t)(void*)arg2); break;