From 2718f8522275ae626bf20c8838d6fe6de4d6f87b Mon Sep 17 00:00:00 2001 From: Cary R Date: Sat, 2 Jan 2010 18:22:15 -0800 Subject: [PATCH] vpi_get_vlog_info should return the version information. This patch fixes vpi_get_vlog_info to return the VERSION. (cherry picked from commit ea4bae7c33758d1235210b42957d7f45d7c42121) --- vvp/vpi_priv.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vvp/vpi_priv.cc b/vvp/vpi_priv.cc index 3d83f7b5e..c9c24b24d 100644 --- a/vvp/vpi_priv.cc +++ b/vvp/vpi_priv.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008-2009 Stephen Williams (steve@icarus.com) + * Copyright (c) 2008-2010 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -17,6 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ +# include "version_base.h" # include "vpi_priv.h" # include "schedule.h" # include @@ -448,7 +449,7 @@ PLI_INT32 vpi_get_vlog_info(p_vpi_vlog_info vlog_info_p) void vpi_set_vlog_info(int argc, char** argv) { static char icarus_product[] = "Icarus Verilog"; - static char icarus_version[] = "$Name: $"; + static char icarus_version[] = VERSION; vpi_vlog_info.product = icarus_product; vpi_vlog_info.version = icarus_version; vpi_vlog_info.argc = argc;