pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1607:    case T_PROGRAM:    break;    }   }      /* This one always leaves a program if possible */   void resolv_program(node *n)   {    check_tree(n,0);    +  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, "Not a valid object type.\n"); +  } +     resolv_class(n);    switch(TYPEOF(Pike_sp[-1]))    {    case T_FUNCTION:    if(program_from_function(Pike_sp-1))    break;       default:    if (Pike_compiler->compiler_pass!=1)    yyerror("Illegal program identifier");