From 8367285f3b574cef618f8f1bed2ef8df9d47cb90 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 29 Dec 2015 12:28:24 -0800 Subject: [PATCH] Fix some struct versus class warnings for vpiScope --- vvp/stop.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vvp/stop.cc b/vvp/stop.cc index 737fbedcf..a80cc2fe4 100644 --- a/vvp/stop.cc +++ b/vvp/stop.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003-2013 Stephen Williams (steve@icarus.com) + * Copyright (c) 2003-2015 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 @@ -40,7 +40,7 @@ # include # include "ivl_alloc.h" -struct __vpiScope*stop_current_scope = 0; +class __vpiScope*stop_current_scope = 0; bool stop_is_finish; /* When set, $stop acts like $finish (set in main.cc). */ int stop_is_finish_exit_code = 0; @@ -127,7 +127,7 @@ static void cmd_call(unsigned argc, char*argv[]) the name in argv[idx+2]. Look in the current scope. */ for (unsigned tmp = 0 ; (tmp < ntable)&& !handle ; tmp += 1) { - struct __vpiScope*scope; + class __vpiScope*scope; const char*name; switch (table[tmp]->get_type_code()) { @@ -228,7 +228,7 @@ static void cmd_list(unsigned, char*[]) printf("%u items in this scope:\n", ntable); for (unsigned idx = 0 ; idx < ntable ; idx += 1) { - struct __vpiScope*scope; + class __vpiScope*scope; struct __vpiSignal*sig; switch (table[idx]->get_type_code()) { @@ -324,7 +324,7 @@ static void cmd_push(unsigned argc, char* argv[]) __vpiHandle**table; unsigned ntable; - struct __vpiScope*child = 0; + class __vpiScope*child = 0; if (stop_current_scope) { table = &stop_current_scope->intern[0]; @@ -339,7 +339,7 @@ static void cmd_push(unsigned argc, char* argv[]) if (table[tmp]->get_type_code() != vpiModule) continue; - struct __vpiScope*cp = dynamic_cast<__vpiScope*>(table[tmp]); + class __vpiScope*cp = dynamic_cast<__vpiScope*>(table[tmp]); /* This is a scope, and the name matches, then report that I found the child. */ @@ -396,7 +396,7 @@ static void cmd_trace(unsigned argc, char*argv[]) static void cmd_where(unsigned, char*[]) { - struct __vpiScope*cur = stop_current_scope; + class __vpiScope*cur = stop_current_scope; while (cur) { switch (cur->get_type_code()) {