safety commit, newer version

This commit is contained in:
ceriel
1986-03-27 17:37:41 +00:00
parent 851a68883c
commit f2764393be
15 changed files with 444 additions and 126 deletions

View File

@@ -83,7 +83,7 @@ DefinitionModule
MODULE IDENT {
df = define(dot.TOK_IDF, CurrentScope, D_MODULE);
open_scope(CLOSEDSCOPE, 0);
df->df_value.df_module.mo_scope = CurrentScope->sc_scope;
df->df_value.df_module.mo_scope = CurrentScope;
}
';'
import(0)*
@@ -98,12 +98,13 @@ DefinitionModule
definition
{
struct def *df;
struct type *tp;
} :
CONST [ ConstantDeclaration ';' ]*
|
TYPE
[ IDENT
[ '=' type
[ '=' type(&tp)
| /* empty */
/*
Here, the exported type has a hidden implementation.