pike.git / src / las.cmod

version» Context lines:

pike.git/src/las.cmod:1773:    }       switch(TYPEOF(Pike_sp[-1])) {    case T_FUNCTION:    if((p = program_from_function(Pike_sp-1))) {    push_object_type(0, p->id);    break;    } else {    /* Attempt to get the return type for the function. */    struct pike_type *a, *b; +  struct call_state cs;    a = get_type_of_svalue(Pike_sp-1);    /* Note: check_splice_call() below eats a reference from a.    * Note: CALL_INHIBIT_WARNINGS is needed since we don't    * provide a function name (and we don't want    * warnings here anyway).    */ -  a = check_splice_call(NULL, a, 0, mixed_type_string, NULL, +  INIT_CALL_STATE(cs); +  a = check_splice_call(NULL, a, &cs, mixed_type_string, NULL,    CALL_INHIBIT_WARNINGS); -  +  FREE_CALL_STATE(cs);    if (a) {    b = new_get_return_type(a, 0);    free_type(a);    if (b) {    push_finished_type(b);    free_type(b);    break;    }    }    }