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.604 2006/07/05 20:47:53 mast Exp $ + || $Id: program.c,v 1.605 2006/07/06 16:46:13 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:3768: Inside #if defined(WITH_FACETS)
   /* Otherwise this is a product class */    else {    if( !Pike_compiler->new_program->facet_group ) {    Pike_compiler->new_program->facet_class = PROGRAM_IS_PRODUCT_CLASS;    add_ref(p->facet_group);    Pike_compiler->new_program->facet_group = p->facet_group;    }    push_int(Pike_compiler->new_program->id);    push_int(p->facet_index);    push_int(p->id); -  safe_apply_low2(p->facet_group, -  find_identifier("add_product_class", -  p->facet_group->prog), -  3, 0); +  safe_apply(p->facet_group, "add_product_class", 3);    pop_stack();    }    }    /* The inherited class is not a facet class */    else if (p && p->facet_class == PROGRAM_IS_PRODUCT_CLASS) {    if (Pike_compiler->new_program->facet_class == PROGRAM_IS_FACET_CLASS) {    yyerror("Facet class can't inherit from product class.");    }    else if(Pike_compiler->new_program->facet_class==PROGRAM_IS_PRODUCT_CLASS){    yyerror("Product class can't inherit from other prodcut class.");