From 0b3d0fa6abc79b0a51bcedbc2451f8d65e9c00d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 26 Jun 2000 20:30:55 +0200 Subject: [PATCH] Added FIXME. Rev: src/language.yacc:1.193 --- src/language.yacc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/language.yacc b/src/language.yacc index cd2ee0b922..e8ce3046ae 100644 --- a/src/language.yacc +++ b/src/language.yacc @@ -109,7 +109,7 @@ /* This is the grammar definition of Pike. */ #include "global.h" -RCSID("$Id: language.yacc,v 1.192 2000/06/26 16:53:31 grubba Exp $"); +RCSID("$Id: language.yacc,v 1.193 2000/06/26 18:30:55 grubba Exp $"); #ifdef HAVE_MEMORY_H #include <memory.h> #endif @@ -2377,8 +2377,16 @@ inherit_specifier: TOK_IDENTIFIER TOK_COLON_COLON | inherit_specifier TOK_IDENTIFIER TOK_COLON_COLON { if ($1) { - int e = find_inherit(inherit_state->new_program->inherits[$1].prog, - $2->u.sval.u.string); + int e = 0; +#if 0 + /* FIXME: The inherit modifiers aren't kept. */ + if (!(inherit_state->new_program->inherits[$1].flags & ID_PRIVATE)) { +#endif /* 0 */ + e = find_inherit(inherit_state->new_program->inherits[$1].prog, + $2->u.sval.u.string); +#if 0 + } +#endif /* 0 */ if (!e) { if (inherit_state->new_program->inherits[$1].name) { my_yyerror("No such inherit %s::%s.", -- GitLab