Add support for displaying a real parameter using %d.

This patch modifies the real parameter get_value routine to use
the standard vpip_real_get_value() routine. This routine has
support for an integer and a decimal string value.
This commit is contained in:
Cary R 2009-05-18 10:58:15 -07:00 committed by Stephen Williams
parent 61214108fe
commit 7988ef04d8
1 changed files with 1 additions and 10 deletions

View File

@ -696,16 +696,7 @@ static void real_value(vpiHandle ref, p_vpi_value vp)
assert((ref->vpi_type->type_code == vpiConstant) ||
(ref->vpi_type->type_code == vpiParameter));
switch (vp->format) {
case vpiObjTypeVal:
vp->format = vpiRealVal;
case vpiRealVal:
vp->value.real = rfp->value;
break;
default:
fprintf(stderr, "vvp error: unsupported format %d.\n", vp->format);
assert(0);
}
vpip_real_get_value(rfp->value, vp);
}
static const struct __vpirt vpip_real_rt = {