pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:5963:    if (!match_types(type, gs_type)) {    level = REPORT_ERROR;    } else if (c->lex.pragmas & ID_STRICT_TYPES) {    level = REPORT_WARNING;    }    yytype_report(level, NULL, 0, gs_type,    NULL, 0, type, 0,    "Type mismatch for callback function %S:", name);    }    if (flags & ID_VARIANT) { -  yyerror("Variants not supported for getter/setters: %S", name); +  my_yyerror("Variants not supported for getter/setters: %S", name);    flags &= ~ID_VARIANT;    }    i = isidentifier(symbol);    if ((i >= 0) &&    !((ref = PTR_FROM_INT(prog, i))->id_flags & ID_INHERITED)) {    /* Not an inherited symbol. */    struct identifier *id = ID_FROM_INT(prog, i);    if (!IDENTIFIER_IS_VARIABLE(id->identifier_flags)) {    my_yyerror("Illegal to redefine function %S with variable.", symbol);    } else if (id->run_time_type != PIKE_T_GET_SET) {