Branch: Tag:

2004-08-16

2004-08-16 16:22:11 by Martin Stjernholm <mast@lysator.liu.se>

Don't warn about using object as program identifier in 7.4 compat mode.

Rev: src/language.yacc:1.339

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.338 2004/07/23 17:23:12 grubba Exp $ + || $Id: language.yacc,v 1.339 2004/08/16 16:22:11 mast Exp $   */      %pure_parser
113:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.338 2004/07/23 17:23:12 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.339 2004/08/16 16:22:11 mast Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
1258:    Pike_sp[-1].type=T_FUNCTION;    }else{    extern void f_object_program(INT32); -  if (Pike_compiler->compiler_pass == 2) { +  if (Pike_compiler->compiler_pass == 2 && !TEST_COMPAT (7, 4)) {    yywarning("Using object as program identifier.");    }    f_object_program(1);