From 66a86433e79a36d0016fff72ec8cf12da046ccde Mon Sep 17 00:00:00 2001 From: steve Date: Fri, 12 Jul 2002 02:10:20 +0000 Subject: [PATCH] Make types array static, not on stack. --- vpi/sys_vcd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vpi/sys_vcd.c b/vpi/sys_vcd.c index db3deda7f..7850f9e9b 100644 --- a/vpi/sys_vcd.c +++ b/vpi/sys_vcd.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: sys_vcd.c,v 1.31 2002/07/12 02:08:10 steve Exp $" +#ident "$Id: sys_vcd.c,v 1.32 2002/07/12 02:10:20 steve Exp $" #endif # include "config.h" @@ -532,7 +532,8 @@ static void scan_item(unsigned depth, vpiHandle item, int skip) int nexus_id; /* list of types to iterate upon */ - int i, types[] = { + int i; + static int types[] = { /* Scope */ vpiFunction, vpiModule, @@ -799,6 +800,9 @@ void sys_vcd_register() /* * $Log: sys_vcd.c,v $ + * Revision 1.32 2002/07/12 02:10:20 steve + * Make types array static, not on stack. + * * Revision 1.31 2002/07/12 02:08:10 steve * Eliminate use of vpiInternalScope. *