pike.git/
src/
language.yacc
Branch:
Tag:
Non-build tags
All tags
No tags
2008-05-30
2008-05-30 20:12:26 by Henrik Grubbström (Grubba) <grubba@grubba.org>
a2f4234bd87b3a48ef74ad458cc389b73fd3df1c (
39
lines) (+
21
/-
18
)
[
Show
|
Annotate
]
Branch:
7.9
Bugfix for chained inherit references.
Rev: src/language.yacc:1.428
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.
427
2008/05/30
17
:
23
:
44
grubba Exp $
+
|| $Id: language.yacc,v 1.
428
2008/05/30
20
:
12
:
26
grubba Exp $
*/ %pure_parser
3836:
} | inherit_specifier TOK_IDENTIFIER TOK_COLON_COLON {
-
if ($1 >= 0) {
+
int e = 0; #if 0 /* FIXME: The inherit modifiers aren't kept. */
3858:
$$ = -1; } else { /* We know stuff about the inherit structure... */
+
if ($1 >= 0) {
$$ = e + $1;
-
+
} else {
+
$$ = e;
} } free_node($2);