From 42bc41ca5b7ca10dcd00a0aa13a7aa1d56396b6c Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 13 May 2010 16:20:49 -0700 Subject: [PATCH] VVP cleanup of ',' at end of enum and missing extern "C" This patch is similar to the previous patches and cleans up a single place in the vvp directory where an enum had a trailing ',' and a place where a C++ routine needed extern "C". --- vvp/compile.cc | 2 +- vvp/schedule.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vvp/compile.cc b/vvp/compile.cc index a9126a3d0..69fba01ee 100644 --- a/vvp/compile.cc +++ b/vvp/compile.cc @@ -67,7 +67,7 @@ enum operand_e { /* The operand is a second functor pointer */ OA_FUNC_PTR2, /* The operand is a VPI handle */ - OA_VPI_PTR, + OA_VPI_PTR }; struct opcode_table_s { diff --git a/vvp/schedule.cc b/vvp/schedule.cc index 237b502e9..68e0c06aa 100644 --- a/vvp/schedule.cc +++ b/vvp/schedule.cc @@ -519,7 +519,7 @@ bool schedule_stopped(void) * These are the signal handling infrastructure. The SIGINT signal * leads to an implicit $stop. */ -static void signals_handler(int) +extern "C" void signals_handler(int) { schedule_stopped_flag = true; }