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.697 2008/05/16 18:20:07 grubba Exp $ + || $Id: program.c,v 1.698 2008/05/18 13:42:10 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:10060: Inside #if 0
   return i;    }    }    }    return -1;   }   #endif /* 0 */      void yywarning(char *fmt, ...)   { -  struct compilation *c = THIS_COMPILATION; +  struct compilation *c = MAYBE_THIS_COMPILATION;    struct string_builder s;    struct pike_string *msg;    va_list args;    -  CHECK_COMPILER(); +  if (!c) return;       /* 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 (Pike_compiler->num_parse_error) return;       init_string_builder(&s, 0);    va_start(args,fmt);