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.639 2008/01/21 22:43:42 grubba Exp $ + || $Id: program.c,v 1.640 2008/01/21 22:46:18 grubba Exp $   */      #include "global.h"   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "lex.h"
pike.git/src/program.c:4297:    add_to_inherits(inherit);    }       /* This value is used by encode_value() to reverse the inherit operation. */    Pike_compiler->new_program->inherits[inherit_offset].identifier_ref_offset =    Pike_compiler->new_program->num_identifier_references;       for (e=0; e < (int)p->num_identifier_references; e++)    {    struct reference fun; -  struct pike_string *name; +        fun = p->identifier_references[e]; /* Make a copy */    -  name=ID_FROM_PTR(p,&fun)->name; +     fun.inherit_offset += inherit_offset;       if (fun.id_flags & ID_FINAL)    {    Pike_compiler->flags |= COMPILATION_CHECK_FINAL;    }       if(fun.id_flags & ID_PRIVATE) fun.id_flags|=ID_HIDDEN;       if (fun.id_flags & ID_PUBLIC)