[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:
Cary R 2007-07-19 15:45:36 -07:00 committed by Stephen Williams
parent e546a9d5c8
commit 1aa6fc3f7a
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}
}

View File

@ -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);