Branch: Tag:

2008-06-10

2008-06-10 13:56:51 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compatibility with Pike 7.6 and earlier for program_magic_identifier().
Referring to 'this' for a surrounding class should now work for compat code again.

Rev: src/program.c:1.719

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.718 2008/06/09 10:57:08 grubba Exp $ + || $Id: program.c,v 1.719 2008/06/10 13:56:51 grubba Exp $   */      #include "global.h"
1709:    state_depth, inherit_num, ident->str, colon_colon_ref);   #endif    +  if (!inherit_num && TEST_COMPAT(7,6)) { +  /* Pike 7.6 and earlier couldn't refer to the current inherit. */ +  inherit_num = -1; +  } +     if ((inherit_num == -1) || (!TEST_COMPAT(7,6) && (inherit_num >= 0))) {    if (ident == this_string) {    /* Handle this. */