public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5edfb9e
)
Fix: opaque types my only be defined in the CORRESPONDING implementation
author
ceriel
<none@none>
Wed, 26 Apr 1995 13:54:56 +0000
(13:54 +0000)
committer
ceriel
<none@none>
Wed, 26 Apr 1995 13:54:56 +0000
(13:54 +0000)
lang/m2/comp/def.c
patch
|
blob
|
history
diff --git
a/lang/m2/comp/def.c
b/lang/m2/comp/def.c
index
56a24dd
..
32074ea
100644
(file)
--- a/
lang/m2/comp/def.c
+++ b/
lang/m2/comp/def.c
@@
-131,7
+131,8
@@
define(id, scope, kind)
/* An opaque type. We may now have found the
definition of this type.
*/
- if (kind == D_TYPE && !DefinitionModule) {
+ if (kind == D_TYPE && df->df_scope == CurrentScope &&
+ !DefinitionModule) {
df->df_kind = D_TYPE;
return df;
}