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.486 2003/03/14 15:50:46 grubba Exp $ + || $Id: program.c,v 1.487 2003/03/14 17:45:05 grubba Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.486 2003/03/14 15:50:46 grubba Exp $"); + RCSID("$Id: program.c,v 1.487 2003/03/14 17:45:05 grubba 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:3788:    /* Copy the variable reference, so that we can change the    * compile-time type. */    n2 = low_define_variable(name, type,    (flags | ID_ALIAS) & ~ID_EXTERN,    ID_FROM_INT(Pike_compiler->new_program, n)->    func.offset +    INHERIT_FROM_INT(Pike_compiler->new_program,    n)->storage_offset,    ID_FROM_INT(Pike_compiler->new_program, n)->    run_time_type); +  /* Copy IDENTIFIER_NO_THIS_REF state from the old variable. +  */ +  ID_FROM_INT(Pike_compiler->new_program, n2)->identifier_flags |= +  ID_FROM_INT(Pike_compiler->new_program, n)->identifier_flags & +  IDENTIFIER_NO_THIS_REF;    /* Hide the old variable. */    Pike_compiler->new_program->identifier_references[n].id_flags |=    ID_STATIC|ID_PRIVATE;    return n2;    }    }    }       run_time_type=compile_type_to_runtime_type(type);