Branch: Tag:

2003-02-24

2003-02-24 21:00:44 by Martin Stjernholm <mast@lysator.liu.se>

Produce real zeroes and not false function pointers when a local function
with only a prototype is referenced. This was a compatibility problem;
there's code that assumes that false values can't be function references.

Rev: src/docode.c:1.161
Rev: src/las.c:1.318
Rev: src/program.c:1.470
Rev: src/program.h:1.174

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: program.h,v 1.173 2003/02/24 13:42:11 grubba Exp $ + || $Id: program.h,v 1.174 2003/02/24 21:00:44 mast Exp $   */      #ifndef PROGRAM_H
146:   #define IDENTIFIER_FUNCTION 3   #define IDENTIFIER_CONSTANT 4   #define IDENTIFIER_VARARGS 8 /* Used for functions only. */ - #define IDENTIFIER_PROTOTYPED 16 + #define IDENTIFIER_HAS_BODY 16 /* Function has a body (set already in pass 1). */   #define IDENTIFIER_SCOPED 32 /* This is used for local functions only */   #define IDENTIFIER_SCOPE_USED 64 /* contains scoped local functions */   #define IDENTIFIER_ALIAS 128 /* This identifier is an alias. */