From d6ef813a20894de2978cdd56e9c2cf6ccbe9bca1 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 15 Mar 2016 16:03:43 +0100 Subject: [PATCH] vhdlpp: Emit subprograms as automatic by default. --- vhdlpp/subprogram_emit.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vhdlpp/subprogram_emit.cc b/vhdlpp/subprogram_emit.cc index 2dab34a89..af25ea3bf 100644 --- a/vhdlpp/subprogram_emit.cc +++ b/vhdlpp/subprogram_emit.cc @@ -54,13 +54,13 @@ int SubprogramHeader::emit_package(ostream&fd) const int errors = 0; if (return_type_) { - fd << "function "; + fd << "function automatic "; return_type_->emit_def(fd, empty_perm_string); } else { - fd << "task"; + fd << "task automatic"; } - fd << " \\" << name_ << " ("; + fd << " \\" << name_ << " ("; for (list::const_iterator cur = ports_->begin() ; cur != ports_->end() ; ++cur) {