Branch: Tag:

2002-12-02

2002-12-02 18:12:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Made "No such inherit ::..." a warning in Pike 7.2 compat.

Rev: src/language.yacc:1.309

2:   || 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: language.yacc,v 1.308 2002/11/27 15:05:00 grubba Exp $ + || $Id: language.yacc,v 1.309 2002/12/02 18:12:14 grubba Exp $   */      %pure_parser
113:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.308 2002/11/27 15:05:00 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.309 2002/12/02 18:12:14 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
3489:    $2->u.sval.u.string, 1)))    {    if (Pike_compiler->compiler_pass == 2) { +  if (TEST_COMPAT(7,2)) { +  yywarning("No such inherit ::%s.", $2->u.sval.u.string->str); +  } else {    my_yyerror("No such inherit ::%s.", $2->u.sval.u.string->str);    } -  +  }    $$=mkintnode(0);    }    }else{