vhdlpp: Clearer error messages

This commit is contained in:
Maciej Suminski 2016-08-23 17:15:16 +02:00
parent 07543315cf
commit 8f86004100
2 changed files with 5 additions and 3 deletions

View File

@ -361,6 +361,8 @@ static void import_ieee_use(ActiveScope*res, perm_string package, perm_string na
import_ieee_use_numeric_std(res, name);
return;
}
cerr << "Warning: Package ieee." << package.str() <<" is not yet supported" << endl;
}
static void import_std_use(const YYLTYPE&loc, ActiveScope*res, perm_string package, perm_string name)
@ -375,7 +377,7 @@ static void import_std_use(const YYLTYPE&loc, ActiveScope*res, perm_string packa
res->use_name(type_FILE_OPEN_STATUS.peek_name(), &type_FILE_OPEN_STATUS);
return;
} else {
sorrymsg(loc, "package %s of library %s not yet supported", package.str(), name.str());
cerr << "Warning: Package std." << package.str() <<" is not yet supported" << endl;
return;
}
}

View File

@ -77,7 +77,7 @@ static const VType* calculate_subtype_array(const YYLTYPE&loc, const char*base_n
const VType*base_type = parse_type_by_name(lex_strings.make(base_name));
if (base_type == 0) {
errormsg(loc, "Unable to find base type %s of array.\n", base_name);
errormsg(loc, "Unable to find array base type '%s'.\n", base_name);
return 0;
}
@ -141,7 +141,7 @@ const VType* calculate_subtype_range(const YYLTYPE&loc, const char*base_name,
const VType*base_type = parse_type_by_name(lex_strings.make(base_name));
if (base_type == 0) {
errormsg(loc, "Unable to find base type %s of range.\n", base_name);
errormsg(loc, "Unable to find range base type '%s'.\n", base_name);
return 0;
}