ext/vlog.c in ruby-vpi-15.0.2 vs ext/vlog.c in ruby-vpi-16.0.0

- old
+ new

@@ -1,24 +1,9 @@ /* Copyright 1999 Kazuhiro HIWADA Copyright 2006 Suraj N. Kurapati - - This file is part of Ruby-VPI. - - Ruby-VPI is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - Ruby-VPI is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with Ruby-VPI; if not, write to the Free Software Foundation, - Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + See the file named LICENSE for details. */ #include "vlog.h" #include "relay.h" @@ -58,18 +43,15 @@ vpi_free_object(vpi_register_cb(&call)); } void (*vlog_startup_routines[])() = { vlog_startup, NULL }; -#if defined(PRAGMATIC_CVER) || defined(SYNOPSYS_VCS) +#if defined(PRAGMATIC_CVER) || defined(SYNOPSYS_VCS) || defined(CADENCE_NCSIM) /** Invokes each routine specified in the vlog_startup_routines array. - - This code is originally from GPL Cver 2.11a: - Copyright (c) 1991-2005 Pragmatic C Software Corp. */ void vlog_startup_routines_bootstrap() { - unsigned int i; + unsigned i; for (i = 0; vlog_startup_routines[i] != NULL; i++) vlog_startup_routines[i](); } #endif