Eliminate use of vpiInternalScope.
This commit is contained in:
parent
f0d2e20342
commit
c610699227
|
|
@ -17,7 +17,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT) && !defined(macintosh)
|
#if !defined(WINNT) && !defined(macintosh)
|
||||||
#ident "$Id: sys_lxt.c,v 1.5 2002/06/21 04:59:36 steve Exp $"
|
#ident "$Id: sys_lxt.c,v 1.6 2002/07/12 17:08:13 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|
@ -525,6 +525,21 @@ static void scan_item(unsigned depth, vpiHandle item, int skip)
|
||||||
const char* ident;
|
const char* ident;
|
||||||
int nexus_id;
|
int nexus_id;
|
||||||
|
|
||||||
|
/* list of types to iterate upon */
|
||||||
|
int i;
|
||||||
|
static int types[] = {
|
||||||
|
/* Value */
|
||||||
|
vpiNet,
|
||||||
|
vpiReg,
|
||||||
|
/* Scope */
|
||||||
|
vpiFunction,
|
||||||
|
vpiModule,
|
||||||
|
vpiNamedBegin,
|
||||||
|
vpiNamedFork,
|
||||||
|
vpiTask,
|
||||||
|
-1
|
||||||
|
};
|
||||||
|
|
||||||
switch (vpi_get(vpiType, item)) {
|
switch (vpi_get(vpiType, item)) {
|
||||||
|
|
||||||
case vpiMemory:
|
case vpiMemory:
|
||||||
|
|
@ -619,13 +634,11 @@ static void scan_item(unsigned depth, vpiHandle item, int skip)
|
||||||
|
|
||||||
push_scope(name); /* keep in type info determination for possible future usage */
|
push_scope(name); /* keep in type info determination for possible future usage */
|
||||||
|
|
||||||
argv = vpi_iterate(vpiInternalScope, item);
|
for (i=0; types[i]>0; i++) {
|
||||||
if (argv) {
|
vpiHandle hand;
|
||||||
for (item = vpi_scan(argv) ;
|
argv = vpi_iterate(types[i], item);
|
||||||
item ;
|
while (argv && (hand = vpi_scan(argv))) {
|
||||||
item = vpi_scan(argv)) {
|
scan_item(depth-1, hand, nskip);
|
||||||
|
|
||||||
scan_item(depth-1, item, nskip);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -782,6 +795,9 @@ void sys_lxt_register()
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: sys_lxt.c,v $
|
* $Log: sys_lxt.c,v $
|
||||||
|
* Revision 1.6 2002/07/12 17:08:13 steve
|
||||||
|
* Eliminate use of vpiInternalScope.
|
||||||
|
*
|
||||||
* Revision 1.5 2002/06/21 04:59:36 steve
|
* Revision 1.5 2002/06/21 04:59:36 steve
|
||||||
* Carry integerness throughout the compilation.
|
* Carry integerness throughout the compilation.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue