Branch: Tag:

2002-12-10

2002-12-10 18:53:15 by Martin Stjernholm <mast@lysator.liu.se>

Made some error/warning messages less confusing.

Rev: src/language.yacc:1.310

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.309 2002/12/02 18:12:14 grubba Exp $ + || $Id: language.yacc,v 1.310 2002/12/10 18:53:15 mast Exp $   */      %pure_parser
113:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.309 2002/12/02 18:12:14 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.310 2002/12/10 18:53:15 mast Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
3383:    {    if(Pike_compiler->compiler_pass==2)    { -  my_yyerror("'%s' undefined.", Pike_compiler->last_identifier->str); +  my_yyerror("Undefined identifier %s.", Pike_compiler->last_identifier->str);    $$=0;    }else{    $$=mknode(F_UNDEFINED,0,0);
3490:    {    if (Pike_compiler->compiler_pass == 2) {    if (TEST_COMPAT(7,2)) { -  yywarning("No such inherit ::%s.", $2->u.sval.u.string->str); +  yywarning("Undefined identifier ::%s.", $2->u.sval.u.string->str);    } else { -  my_yyerror("No such inherit ::%s.", $2->u.sval.u.string->str); +  my_yyerror("Undefined identifier ::%s.", $2->u.sval.u.string->str);    }    }    $$=mkintnode(0);