pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:5832:    INT32 flags,    struct pike_string *name)   {    struct program *p;    struct identifier *i;    INT32 numid=-1, offset=0;    int inherit_offset = Pike_compiler->new_program->num_inherits;       if(!n)    { -  yyerror("Unable to inherit"); +  yyerror("Unable to inherit.");    return;    }       if (Pike_compiler->compiler_pass != COMPILER_PASS_FIRST) {    /* Note off by one! */    inherit_offset = Pike_compiler->num_inherits + 1;    }       if ((n->token == F_APPLY) && (CAR(n)->token == F_CONSTANT) &&    (TYPEOF(CAR(n)->u.sval) == T_FUNCTION) &&
pike.git/src/program.c:5876:    ;    }       fix_type_field(n);       if (!pike_types_le(n->type, inheritable_type_string) &&    (THIS_COMPILATION->lex.pragmas & ID_STRICT_TYPES)) {    yytype_report(REPORT_WARNING,    n->current_file, n->line_number, inheritable_type_string,    n->current_file, n->line_number, n->type, -  0, "Program required for inherit.\n"); +  0, "Program required for inherit.");    }       switch(n->token)    {    case F_EXTERNAL:    {    struct program_state *state = Pike_compiler;       offset = 0;    while (state && (state->new_program->id != n->u.integer.a)) {    state = state->previous;    offset++;    }    if (!state) { -  yyerror("Failed to resolv external constant.\n"); +  yyerror("Failed to resolv external constant.");    return;    }    p = state->new_program;    numid = n->u.integer.b;    if ((name == this_program_string) && (offset == 1)) {    /* Klugde: Default to renaming ::this_program    * to the name of the current class.    *    * Otherwise the this_program:-scope    * will become confusing, as it will
pike.git/src/program.c:5932:    return;    }else{    low_inherit(s->u.program,    0,    numid,    offset+42,    flags,    name);    }    }else{ -  yyerror("Inherit identifier is not a constant program"); +  yyerror("Inherit identifier is not a constant program.");    return;    }    break;       default:    resolv_class(n);    do_inherit(Pike_sp-1, flags, name);    pop_stack();    }