summaryrefslogtreecommitdiff
path: root/src/consinit.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-01-04 14:47:24 -0500
committerAdrian Thurston <thurston@complang.org>2015-01-04 14:47:24 -0500
commit26ae0bcd0891fc2ace430c6258dadd17607595de (patch)
tree56fd7992125884643ce0a59ecdf4334c67ff7e15 /src/consinit.cc
parentb86d5b2fa8e4ab4773a0fdb252d5dd8356feec16 (diff)
downloadcolm-26ae0bcd0891fc2ace430c6258dadd17607595de.tar.gz
some name changing context -> struct
Diffstat (limited to 'src/consinit.cc')
-rw-r--r--src/consinit.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/consinit.cc b/src/consinit.cc
index b91748d7..af3854f5 100644
--- a/src/consinit.cc
+++ b/src/consinit.cc
@@ -437,7 +437,7 @@ void ConsInit::definition( const String &name, Production *prod1, Production *pr
prodAppend( defList, prod3 );
prodAppend( defList, prod4 );
- NtDef *ntDef = NtDef::cons( name, curNspace(), curContext(), false );
+ NtDef *ntDef = NtDef::cons( name, curNspace(), curStruct(), false );
ObjectDef *objectDef = ObjectDef::cons( ObjectDef::UserType, name, pd->nextObjectId++ );
cflDef( ntDef, objectDef, defList );
}
@@ -449,7 +449,7 @@ void ConsInit::definition( const String &name, Production *prod1, Production *pr
prodAppend( defList, prod2 );
prodAppend( defList, prod3 );
- NtDef *ntDef = NtDef::cons( name, curNspace(), curContext(), false );
+ NtDef *ntDef = NtDef::cons( name, curNspace(), curStruct(), false );
ObjectDef *objectDef = ObjectDef::cons( ObjectDef::UserType, name, pd->nextObjectId++ );
cflDef( ntDef, objectDef, defList );
}
@@ -460,7 +460,7 @@ void ConsInit::definition( const String &name, Production *prod1, Production *pr
prodAppend( defList, prod1 );
prodAppend( defList, prod2 );
- NtDef *ntDef = NtDef::cons( name, curNspace(), curContext(), false );
+ NtDef *ntDef = NtDef::cons( name, curNspace(), curStruct(), false );
ObjectDef *objectDef = ObjectDef::cons( ObjectDef::UserType, name, pd->nextObjectId++ );
cflDef( ntDef, objectDef, defList );
}
@@ -470,7 +470,7 @@ void ConsInit::definition( const String &name, Production *prod )
LelDefList *defList = new LelDefList;
prodAppend( defList, prod );
- NtDef *ntDef = NtDef::cons( name, curNspace(), curContext(), false );
+ NtDef *ntDef = NtDef::cons( name, curNspace(), curStruct(), false );
ObjectDef *objectDef = ObjectDef::cons( ObjectDef::UserType, name, pd->nextObjectId++ );
cflDef( ntDef, objectDef, defList );
}