pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2008-05-30
2008-05-30 20:20:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7e642814aed556390cbd682d68a53d09f2606694 (
12
lines) (+
6
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
Yet another bugfix...
Rev: src/language.yacc:1.429
2:
|| 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: language.yacc,v 1.
428
2008/05/30 20:
12
:
26
grubba Exp $
+
|| $Id: language.yacc,v 1.
429
2008/05/30 20:
20
:
23
grubba Exp $
*/ %pure_parser
3837:
| inherit_specifier TOK_IDENTIFIER TOK_COLON_COLON { int e = 0;
+
if ($1 < 0) {
+
$1 = 0;
+
}
#if 0 /* FIXME: The inherit modifiers aren't kept. */ if (!(inherit_state->new_program->inherits[$1].flags & ID_PRIVATE)) {
3857:
$$ = -1; } else { /* We know stuff about the inherit structure... */
-
if ($1 >= 0) {
+
$$ = e + $1;
-
} else {
-
$$ = e;
+
}
-
}
+
free_node($2); } | inherit_specifier bad_identifier TOK_COLON_COLON { $$ = -1; }