2009-06-22
2009-06-22 12:08:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
a247eb25aa291ce3979d402447ba453bed9de8e6
(23 lines)
(+21/-2)
[
Show
| Annotate
]
Branch: 7.9
Fixed some warnings.
Rev: src/program.c:1.764
Rev: src/program.h:1.265
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.c,v 1.763 2009/06/21 17:16:06 grubba Exp $
+ || $Id: program.c,v 1.764 2009/06/22 12:08:51 grubba Exp $
*/
#include "global.h"
3007: Inside #if defined(PIKE_DEBUG)
#ifdef PIKE_DEBUG
- void dump_program_tables (struct program *p, int indent)
+ void dump_program_tables (const struct program *p, int indent)
{
int d;
5911:
* In Pike 7.3.22 and prior, it looked up the last definition regardless
* of inherit depth, unless there was a definition in the current program.
*
+ * Note also that the changed handling of mixin's in Pike 7.7.40 affects
+ * the behaviour when using static inherit. See F below.
+ *
* Example:
*
* class A {
5931:
* inherit C;
* }
*
+ * class E {
+ * int foo() {}
+ * }
+ *
+ * class F {
+ * inherit A;
+ * static inherit E;
+ * }
+ *
* Lookup of identifier "foo" in D():
*
* D-+-B-+-foo Pike 7.3.23 --- Pike 7.3.32
5952:
* B-+-foo All versions of Pike
* |
* +-A---foo
+ *
+ * External lookup of identifier "foo" in E():
+ *
+ * F-+-A---foo --- Pike 7.7.33
+ * |
+ * +-E---foo Pike 7.7.34 ---
*/
int really_low_find_shared_string_identifier(struct pike_string *name,
struct program *prog,