pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:3583: Inside #if defined(NEW_ARG_CHECK)
   push_type(T_ARRAY);    free_type(n->type);    n->type = pop_type();    }    break;    }       /* Too few arguments or similar. */    copy_pike_type(n->type, mixed_type_string);    -  if ((s = get_first_arg_type(dmalloc_touch(struct pike_type *, f), 0)) || -  (s = get_first_arg_type(dmalloc_touch(struct pike_type *, f), +  if ((s = get_first_arg_type(dmalloc_touch(struct pike_type *, f),    CALL_NOT_LAST_ARG))) {    yytype_report(REPORT_ERROR, NULL, 0, s,    NULL, 0, NULL,    0, "Too few arguments to %S (got %d).",    name, args);    free_type(s);    yytype_report(REPORT_ERROR, NULL, 0, NULL,    NULL, 0, CAR(n)->type,    0, "Function type:");    } else {
pike.git/src/las.c:4192:    add_ref(sscanf_type = sscanf_type_string);    }    args = mknode(F_ARG_LIST, CDAR(n), CDR(n));    add_ref(CDAR(n));    if (CDR(n)) add_ref(CDR(n));    sscanf_type = new_check_call(sscanf_name, sscanf_type, args, &argno, 0);    free_node(args);    if (sscanf_type) {    if (!(n->type = new_get_return_type(sscanf_type, 0))) {    struct pike_type *expected; -  if ((expected = get_first_arg_type(sscanf_type, 0)) || -  (expected = get_first_arg_type(sscanf_type, CALL_NOT_LAST_ARG))) { +  if ((expected = get_first_arg_type(sscanf_type, CALL_NOT_LAST_ARG))) {    yytype_report(REPORT_ERROR,    NULL, 0, expected,    NULL, 0, NULL,    0, "Too few arguments to %S (got %d).",    sscanf_name, argno);    free_type(expected);    } else {    /* Most likely not reached. */    yytype_report(REPORT_ERROR,    NULL, 0, function_type_string,