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.479 2003/09/09 08:22:05 mast Exp $ + || $Id: program.c,v 1.480 2003/09/30 13:32:58 grubba Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.479 2003/09/09 08:22:05 mast Exp $"); + RCSID("$Id: program.c,v 1.480 2003/09/30 13:32:58 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:4206:       ref.inherit_offset = 0;    ref.id_flags = flags;    if ((overridden = override_identifier (&ref, name)) >= 0) {   #ifdef PIKE_DEBUG    if(MEMCMP(Pike_compiler->new_program->identifier_references+i, &ref,sizeof(ref)))    Pike_fatal("New function overloading algorithm failed!\n");   #endif    return overridden;    } -  } +  } else {    make_a_new_def:      #ifdef PIKE_DEBUG    if(Pike_compiler->compiler_pass==2)    Pike_fatal("Internal error: Not allowed to add more identifiers during second compiler pass.\n");   #endif    -  /* define a new function */ +  /* Define a new function */       copy_shared_string(fun.name, name);    copy_pike_type(fun.type, type);       fun.identifier_flags=function_flags;    fun.run_time_type=T_FUNCTION;       if(func)    fun.func = *func;    else
pike.git/src/program.c:4247:    }   #endif /* PIKE_DEBUG */       i=Pike_compiler->new_program->num_identifiers;       debug_add_to_identifiers(fun);       ref.id_flags = flags;    ref.identifier_offset = i;    ref.inherit_offset = 0; +  }       i=Pike_compiler->new_program->num_identifier_references;    add_to_identifier_references(ref);      #ifdef PROGRAM_BUILD_DEBUG    fprintf(stderr, "%.*sadded new definition #%d\n",    compilation_depth, " ", i);   #endif       return i;