diff options
Diffstat (limited to 'testsuite/vpi')
-rw-r--r-- | testsuite/vpi/vpi001/vpi1.c | 3 | ||||
-rw-r--r-- | testsuite/vpi/vpi002/vpi1.c | 3 | ||||
-rw-r--r-- | testsuite/vpi/vpi003/vpi1.c | 3 | ||||
-rw-r--r-- | testsuite/vpi/vpi004/vpi1.c | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/testsuite/vpi/vpi001/vpi1.c b/testsuite/vpi/vpi001/vpi1.c index c4943fde6..c266b5cd7 100644 --- a/testsuite/vpi/vpi001/vpi1.c +++ b/testsuite/vpi/vpi001/vpi1.c @@ -31,8 +31,9 @@ vpi_proc (void) //"myentity.genstring", -- Not supported //"myentity.conststring" -- Not supported }; + int name_index; - for (int name_index=0; name_index<N_NAMES; name_index+=1) { + for (name_index=0; name_index<N_NAMES; name_index+=1) { printf ("Trying to find name %s\n", names[name_index]); net = vpi_handle_by_name (names[name_index], NULL); if (net == NULL) diff --git a/testsuite/vpi/vpi002/vpi1.c b/testsuite/vpi/vpi002/vpi1.c index f992e8246..d6f1b42fb 100644 --- a/testsuite/vpi/vpi002/vpi1.c +++ b/testsuite/vpi/vpi002/vpi1.c @@ -46,8 +46,9 @@ vpi_proc (void) //"myentity.sigarray5[0]", // Not supported //"myentity.portarray5[0]" // Not supported }; + int name_index; - for (int name_index=0; name_index<N_NAMES; name_index+=1) { + for (name_index=0; name_index<N_NAMES; name_index+=1) { printf ("Trying to find name %s\n", names[name_index]); net = vpi_handle_by_name (names[name_index], NULL); if (net == NULL) diff --git a/testsuite/vpi/vpi003/vpi1.c b/testsuite/vpi/vpi003/vpi1.c index e8e538ef6..d7a6f8241 100644 --- a/testsuite/vpi/vpi003/vpi1.c +++ b/testsuite/vpi/vpi003/vpi1.c @@ -21,8 +21,9 @@ vpi_proc (void) //"myentity.genarray1", //"myentity.constarray1" }; + int name_index; - for (int name_index=0; name_index<N_NAMES; name_index+=1) { + for (name_index=0; name_index<N_NAMES; name_index+=1) { printf ("Trying to find name %s\n", names[name_index]); net = vpi_handle_by_name (names[name_index], NULL); if (net == NULL) diff --git a/testsuite/vpi/vpi004/vpi1.c b/testsuite/vpi/vpi004/vpi1.c index 96c6f3809..25d426fe7 100644 --- a/testsuite/vpi/vpi004/vpi1.c +++ b/testsuite/vpi/vpi004/vpi1.c @@ -6,6 +6,7 @@ void vpi_proc (void) { s_vpi_vlog_info info; + int i; printf ("Trying to get vlog_info\n"); int ret = vpi_get_vlog_info(&info); if (ret != 1) { @@ -19,7 +20,7 @@ vpi_proc (void) } printf ("Argc: %d\n", info.argc); - for (int i = 0; i < info.argc; i++) { + for (i = 0; i < info.argc; i++) { printf ("Argv[%d]: %s\n", i, info.argv[i]); } |