summaryrefslogtreecommitdiff
path: root/src/declare.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-02-14 16:45:30 -0500
committerAdrian Thurston <thurston@complang.org>2015-02-14 16:45:30 -0500
commitbbd7ab2bac367385461aca490cf3067bd9f1a78d (patch)
tree070d017ade4fc3d9e5b392fab49c215e2a5159ab /src/declare.cc
parent63e23d75bacdca95863026476b90c76292ec0807 (diff)
downloadcolm-bbd7ab2bac367385461aca490cf3067bd9f1a78d.tar.gz
need to make vlist and vmap elment structs unique
Diffstat (limited to 'src/declare.cc')
-rw-r--r--src/declare.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declare.cc b/src/declare.cc
index edb2fab7..cde56548 100644
--- a/src/declare.cc
+++ b/src/declare.cc
@@ -226,7 +226,7 @@ LangEl *declareLangEl( Compiler *pd, Namespace *nspace,
* it is not there then it will be inserted and last found will be set to it. */
TypeMapEl *inDict = nspace->typeMap.find( data );
if ( inDict != 0 )
- error() << "'" << data << "' already defined as something else" << endp;
+ error() << "language element '" << data << "' already defined as something else" << endp;
/* Language element not there. Make the new lang el and insert.. */
LangEl *langEl = new LangEl( nspace, data, type );
@@ -243,9 +243,9 @@ StructEl *declareStruct( Compiler *pd, Namespace *inNspace,
if ( inNspace != 0 ) {
TypeMapEl *inDict = inNspace->typeMap.find( data );
if ( inDict != 0 )
- error() << "'" << data << "' already defined as something else" << endp;
+ error() << "struct '" << data << "' already defined as something else" << endp;
}
-
+
StructEl *structEl = new StructEl( data, structDef );
pd->structEls.append( structEl );
structDef->structEl = structEl;
@@ -274,7 +274,7 @@ void declareTypeAlias( Compiler *pd, Namespace *nspace,
* it is not there then it will be inserted and last found will be set to it. */
TypeMapEl *inDict = nspace->typeMap.find( data );
if ( inDict != 0 )
- error() << "'" << data << "' already defined as something else" << endp;
+ error() << "alias '" << data << "' already defined as something else" << endp;
/* Language element not there. Make the new lang el and insert. */
TypeMapEl *typeMapEl = new TypeMapEl( TypeMapEl::AliasType, data, typeRef );