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.482 2003/02/20 14:55:12 grubba Exp $ + || $Id: program.c,v 1.483 2003/02/24 21:00:45 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.482 2003/02/20 14:55:12 grubba Exp $"); + RCSID("$Id: program.c,v 1.483 2003/02/24 21:00:45 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "language.h"   #include "lex.h"   #include "pike_macros.h"   #include "fsort.h"
pike.git/src/program.c:4282:    if(!match_types(type, funp->type))    {    if (!(flags & ID_VARIANT)) {    my_yyerror("Prototype doesn't match for function %s.",name->str);    }    }    }       /* We modify the old definition if it is in this program */    +  if (funp->identifier_flags & IDENTIFIER_HAS_BODY) +  /* Keep this flag. */ +  function_flags |= IDENTIFIER_HAS_BODY; +     if(!(ref.id_flags & ID_INHERITED))    {    if(func)    funp->func = *func;   #if 0 /* prototypes does not override non-prototypes, ok? */    else    funp->func.offset = -1;   #endif       funp->identifier_flags=function_flags;