pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:5024:    struct program *p;    struct identifier *i;    INT32 numid=-1, offset=0;       if(!n)    {    yyerror("Unable to inherit");    return;    }    +  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"); +  } +     switch(n->token)    {    case F_IDENTIFIER:    p=Pike_compiler->new_program;    offset=0;    numid=n->u.id.number;    goto continue_inherit;       case F_EXTERNAL:    {