Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log_deprecated_pkg: fix compilation issues with Cadence tools #731

Merged
merged 1 commit into from
Aug 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions vunit/vhdl/logging/src/log_deprecated_pkg.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ package body log_deprecated_pkg is
end if;
end function;

impure function get_logger_display_handler return log_handler_t is
impure function get_logger_display_handler(logger : logger_t) return log_handler_t is
begin
for idx in 0 to num_log_handlers(logger) - 1 loop
if get_file_name(get_log_handler(logger, idx)) = stdout_file_name then
Expand All @@ -112,7 +112,7 @@ package body log_deprecated_pkg is
return null_log_handler;
end function;

impure function get_logger_file_handler return log_handler_t is
impure function get_logger_file_handler(logger : logger_t) return log_handler_t is
begin
for idx in 0 to num_log_handlers(logger) - 1 loop
if get_file_name(get_log_handler(logger, idx)) /= stdout_file_name then
Expand All @@ -123,14 +123,14 @@ package body log_deprecated_pkg is
return null_log_handler;
end function;
begin
logger_display_handler := get_logger_display_handler;
logger_display_handler := get_logger_display_handler(logger);
if new_logger or (logger_display_handler = null_log_handler) then
logger_display_handler := new_log_handler(stdout_file_name, real_format(display_format), true);
else
init_log_handler(logger_display_handler, real_format(display_format), stdout_file_name, true);
end if;

logger_file_handler := get_logger_file_handler;
logger_file_handler := get_logger_file_handler(logger);
if new_logger or (logger_file_handler = null_log_handler) then
logger_file_handler := new_log_handler(file_name, real_format(file_format), false);
else
Expand Down