From 90cf0e5794eebe487b088f5fe8aa4ece6c693080 Mon Sep 17 00:00:00 2001 From: Cary R Date: Sat, 19 Dec 2015 10:49:11 -0800 Subject: [PATCH] VHDL-10: fix a compile warning and add some missing newlines --- vhdlpp/parse.y | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/vhdlpp/parse.y b/vhdlpp/parse.y index ea948a1a8..ccda970a8 100644 --- a/vhdlpp/parse.y +++ b/vhdlpp/parse.y @@ -665,7 +665,7 @@ component_configuration block_configuration_opt K_end K_for ';' { - sorrymsg(@1, "Component configuration in not yet supported"); + sorrymsg(@1, "Component configuration in not yet supported\n"); if($3) delete $3; delete $2; } @@ -878,7 +878,7 @@ configuration_declaration K_end K_configuration_opt identifier_opt ';' { if(design_entities.find(lex_strings.make($4)) == design_entities.end()) - errormsg(@4, "Couldn't find entity %s used in configuration declaration", $4); + errormsg(@4, "Couldn't find entity %s used in configuration declaration\n", $4); //choose_architecture_for_entity(); sorrymsg(@1, "Configuration declaration is not yet supported.\n"); } @@ -1873,10 +1873,10 @@ primary else if(!strcasecmp($2, "fs")) unit = ExpTime::FS; else - errormsg(@2, "Invalid time unit (accepted are fs, ps, ns, us, ms, s)."); + errormsg(@2, "Invalid time unit (accepted are fs, ps, ns, us, ms, s).\n"); if($1 < 0) - errormsg(@1, "Time cannot be negative."); + errormsg(@1, "Time cannot be negative.\n"); ExpTime*tmp = new ExpTime($1, unit); FILE_NAME(tmp, @1); @@ -2586,7 +2586,7 @@ suffix { $$ = $1; } | K_all { //do not have now better idea than using char constant - $$ = strcpy(new char[strlen("all"+1)], "all"); + $$ = strdup("all"); } ;