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.705 2008/05/24 16:21:21 grubba Exp $ + || $Id: program.c,v 1.706 2008/05/24 16:41:03 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:6905:    STACK_LEVEL_START(args);      #ifdef PIKE_DEBUG    if(Pike_interpreter.recoveries && Pike_sp-Pike_interpreter.evaluator_stack < Pike_interpreter.recoveries->stack_pointer)    Pike_fatal("Stack error (underflow)\n");   #endif       /* Convert type errors to warnings in non-strict compat mode. */    if ((system == type_check_system_string) &&    (severity_level == REPORT_ERROR) && -  (c->major != -1) && +  (Pike_compiler->compat_major != -1) &&    !(c->lex.pragmas & ID_STRICT_TYPES) && -  ((c->major < PIKE_MAJOR_VERSION) || -  ((c->major == PIKE_MAJOR_VERSION) && -  (c->minor < PIKE_MINOR_VERSION)))) { +  ((Pike_compiler->compat_major < PIKE_MAJOR_VERSION) || +  ((Pike_compiler->compat_major == PIKE_MAJOR_VERSION) && +  (Pike_compiler->compat_minor < PIKE_MINOR_VERSION)))) {    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) {