pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.703 2008/05/24 15:42:51 grubba Exp $ + || $Id: program.c,v 1.704 2008/05/24 16:20:00 grubba Exp $   */      #include "global.h"   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "lex.h"
pike.git/src/program.c:6916:    severity_level = REPORT_WARNING;    }       /* If we have parse errors we might get erroneous warnings,    * so don't print them.    * This has the additional benefit of making it easier to    * visually locate the actual error message.    */    if ((severity_level <= REPORT_WARNING) &&    Pike_compiler->num_parse_error) { +  pop_n_elems(args);    return;    }       if (severity_level >= REPORT_ERROR) { -  if (Pike_compiler->num_parse_error > 20) return; +  if (Pike_compiler->num_parse_error > 20) { +  pop_n_elems(args); +  return; +  }    Pike_compiler->num_parse_error++;    cumulative_parse_error++;    }       push_int(severity_level);    ref_push_string(file?file:c->lex.current_file);    push_int(line?line:c->lex.current_line);    ref_push_string(system);    if (args) {    int i = args;
pike.git/src/program.c:7037:    } else if (expected_t) {    ref_push_type_value(expected_t);    low_yyreport(severity_level,    expected_file?expected_file:got_file,    expected_line?expected_line:got_line,    type_check_system_string,    1, "Expected: %O.");    } else if (got_t) {    ref_push_type_value(got_t);    low_yyreport(severity_level, got_file, got_line, type_check_system_string, -  1, "Got : %O"); +  1, "Got : %O.");    }   }      void yytype_error(const char *msg, struct pike_type *expected_t,    struct pike_type *got_t, unsigned int flags)   {    yytype_report((flags & YYTE_IS_WARNING)?REPORT_WARNING:REPORT_ERROR,    NULL, 0, expected_t, NULL, 0, got_t, 0, "%s", msg);   }