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.598 2005/12/31 03:35:58 nilsson Exp $
+ || $Id: program.c,v 1.599 2005/12/31 15:03:57 nilsson 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_low3(p->facet_group,
+ safe_apply_low2(p->facet_group,
find_identifier("add_product_class",
p->facet_group->prog),
- 3,
- "Unable to add product class");
+ 3, 0);
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.");