public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2552813
)
fixed bug with struct/union/enum declarations
author
ceriel
<none@none>
Thu, 18 Apr 1991 12:27:58 +0000
(12:27 +0000)
committer
ceriel
<none@none>
Thu, 18 Apr 1991 12:27:58 +0000
(12:27 +0000)
lang/cem/cemcom.ansi/declar.g
patch
|
blob
|
history
diff --git
a/lang/cem/cemcom.ansi/declar.g
b/lang/cem/cemcom.ansi/declar.g
index
ae79dc5
..
0536d36
100644
(file)
--- a/
lang/cem/cemcom.ansi/declar.g
+++ b/
lang/cem/cemcom.ansi/declar.g
@@
-366,6
+366,7
@@
enum_specifier(register struct type **tpp;)
arith l = (arith)0;
}
:
+ {if (*tpp) error("multiple types in declaration");}
ENUM
[
{declare_struct(ENUM, (struct idf *) 0, tpp);}
@@
-432,6
+433,7
@@
struct_or_union_specifier(register struct type **tpp;)
register struct idf *idf;
}
:
+ {if (*tpp) error("multiple types in declaration");}
[ STRUCT | UNION ]
{fund = DOT;}
[