Branch: Tag:

2003-02-24

2003-02-24 21:00:45 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.163
Rev: src/las.c:1.325
Rev: src/program.c:1.483
Rev: src/program.h:1.178

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.177 2003/02/20 14:55:12 grubba Exp $ + || $Id: program.h,v 1.178 2003/02/24 21:00:45 mast Exp $   */      #ifndef PROGRAM_H
147:   #define IDENTIFIER_CONSTANT 4   #define IDENTIFIER_VARARGS 8 /* Used for functions only. */   #define IDENTIFIER_NO_THIS_REF 8 /* Used for variables only: Don't count refs to self. */ - #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. */