[PATCH] Update vpiFinish arguments to be in correct range.
Even though vpiFinish does not currently do anything with it's argument I thought it would be best to have them all be in the correct range [0, 1, 2], so they have been updated as appropriate.
This commit is contained in:
parent
e546a9d5c8
commit
1aa6fc3f7a
|
|
@ -1235,12 +1235,12 @@ static PLI_INT32 sys_timeformat_compiletf(PLI_BYTE8*xx)
|
|||
if (vpi_get(vpiType, tmp) != vpiConstant) {
|
||||
vpi_printf("$timeformat's arguments must be");
|
||||
vpi_printf(" constant.\n");
|
||||
vpi_control(vpiFinish, -1);
|
||||
vpi_control(vpiFinish, 1);
|
||||
}
|
||||
} else {
|
||||
vpi_printf("$timeformat requires zero or four");
|
||||
vpi_printf(" arguments!\n");
|
||||
vpi_control(vpiFinish, -1);
|
||||
vpi_control(vpiFinish, 1);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,14 +41,14 @@ static PLI_INT32 sys_fopen_compiletf(PLI_BYTE8*name)
|
|||
|
||||
if (argv == 0) {
|
||||
vpi_printf("%s: file name argument missing.\n", name);
|
||||
vpi_control(vpiFinish, -1);
|
||||
vpi_control(vpiFinish, 1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
item = vpi_scan(argv);
|
||||
if (item == 0) {
|
||||
vpi_printf("%s: file name argument missing.\n", name);
|
||||
vpi_control(vpiFinish, -1);
|
||||
vpi_control(vpiFinish, 1);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
@ -62,12 +62,12 @@ static PLI_INT32 sys_fopen_compiletf(PLI_BYTE8*name)
|
|||
|
||||
if (! is_constant(item)) {
|
||||
vpi_printf("ERROR: %s mode argument must be a constant\n", name);
|
||||
vpi_control(vpiFinish, -1);
|
||||
vpi_control(vpiFinish, 1);
|
||||
}
|
||||
|
||||
if (vpi_get(vpiConstType, item) != vpiStringConst) {
|
||||
vpi_printf("ERROR: %s mode argument must be a string.\n", name);
|
||||
vpi_control(vpiFinish, -1);
|
||||
vpi_control(vpiFinish, 1);
|
||||
}
|
||||
|
||||
item = vpi_scan(argv);
|
||||
|
|
|
|||
Loading…
Reference in New Issue