+extern time_t time(time_t *t);
+function psi\time() : int {
+ let t = NULL;
+ return to_int(time);
+}
+
extern int gettimeofday(struct timeval *tv, struct timezone *tz);
function psi\gettimeofday(array &$tv = NULL, array &$tz = NULL) : int {
let tv = calloc(1, struct timeval);
}
static inline jit_type_t psi_jit_token_type(token_t t) {
switch (t) {
- default:
- ZEND_ASSERT(0);
- /* no break */
case PSI_T_VOID:
return jit_type_void;
case PSI_T_INT8:
return jit_type_ulong;
case PSI_T_BOOL:
return jit_type_sys_bool;
- case PSI_T_INT:
- return jit_type_sys_int;
case PSI_T_FLOAT:
return jit_type_sys_float;
case PSI_T_DOUBLE:
return jit_type_sys_double;
+ EMPTY_SWITCH_DEFAULT_CASE();
}
}
static inline jit_type_t psi_jit_decl_type(decl_type *type) {
}
}
+ memset(&ret_val, 0, sizeof(ret_val));
PSI_ContextCall(&PSI_G(context), &ret_val, impl->decl);
psi_do_return(return_value, impl->stmts->ret.list[0], &ret_val);