Fix up comments & messages, add Release Notes

This commit is contained in:
Andrew Johnson
2021-02-27 16:45:12 -06:00
parent bee00658ae
commit 08eaea64d2
3 changed files with 17 additions and 3 deletions

View File

@@ -103,8 +103,8 @@ sub ParseDBD {
unquote($1, $2, $3, $4);
my $rtyp = $dbd->recordtype($record_type);
if (!defined $rtyp) {
my $msg = "Device '$choice' defined for unknown record type '$record_type'.";
dieContext($msg, "DBD files must be added in the correct order.")
my $msg = "Device '$choice' refers to unknown record type '$record_type'.";
dieContext($msg, "DBD files must be combined in the correct order.")
unless $allowAutoDeclarations;
warn "$msg\nRecord type '$record_type' declared.\n";
$rtyp = DBD::Recordtype->new($record_type);

View File

@@ -31,7 +31,7 @@ my @path = map { split /[:;]/ } @opt_I; # FIXME: Broken on Win32?
my ($file, $subname, $bldTop) = @ARGV;
# Permit auto-declaration of record types for building runtime-loadable modules
# Auto-declaration of record types is needed to build loadable modules
$DBD::Parser::allowAutoDeclarations = 1;
my $dbd = DBD->new();