Windows VPI: route vpip_format_pretty through vpip_routines_s
MinGW links system.vpi against libvpi; add format_pretty to the jump table and libvpi thunk (bump vpip_routines_version to 2).
This commit is contained in:
parent
70d1de0dbd
commit
96ca470f55
|
|
@ -286,6 +286,11 @@ void vpip_format_strength(char*str, s_vpi_value*value, unsigned bit)
|
||||||
assert(vpip_routines);
|
assert(vpip_routines);
|
||||||
vpip_routines->format_strength(str, value, bit);
|
vpip_routines->format_strength(str, value, bit);
|
||||||
}
|
}
|
||||||
|
char* vpip_format_pretty(vpiHandle ref)
|
||||||
|
{
|
||||||
|
assert(vpip_routines);
|
||||||
|
return vpip_routines->format_pretty(ref);
|
||||||
|
}
|
||||||
void vpip_make_systf_system_defined(vpiHandle ref)
|
void vpip_make_systf_system_defined(vpiHandle ref)
|
||||||
{
|
{
|
||||||
assert(vpip_routines);
|
assert(vpip_routines);
|
||||||
|
|
|
||||||
|
|
@ -700,7 +700,7 @@ extern void vpip_count_drivers(vpiHandle ref, unsigned idx,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Increment the version number any time vpip_routines_s is changed.
|
// Increment the version number any time vpip_routines_s is changed.
|
||||||
static const PLI_UINT32 vpip_routines_version = 1;
|
static const PLI_UINT32 vpip_routines_version = 2;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
vpiHandle (*register_cb)(p_cb_data);
|
vpiHandle (*register_cb)(p_cb_data);
|
||||||
|
|
@ -741,6 +741,7 @@ typedef struct {
|
||||||
s_vpi_vecval(*calc_clog2)(vpiHandle);
|
s_vpi_vecval(*calc_clog2)(vpiHandle);
|
||||||
void (*count_drivers)(vpiHandle, unsigned, unsigned [4]);
|
void (*count_drivers)(vpiHandle, unsigned, unsigned [4]);
|
||||||
void (*format_strength)(char*, s_vpi_value*, unsigned);
|
void (*format_strength)(char*, s_vpi_value*, unsigned);
|
||||||
|
char* (*format_pretty)(vpiHandle);
|
||||||
void (*make_systf_system_defined)(vpiHandle);
|
void (*make_systf_system_defined)(vpiHandle);
|
||||||
void (*mcd_rawwrite)(PLI_UINT32, const char*, size_t);
|
void (*mcd_rawwrite)(PLI_UINT32, const char*, size_t);
|
||||||
void (*set_return_value)(int);
|
void (*set_return_value)(int);
|
||||||
|
|
|
||||||
|
|
@ -2059,6 +2059,7 @@ extern "C" void vpip_count_drivers(vpiHandle ref, unsigned idx,
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__MINGW32__) || defined (__CYGWIN__)
|
#if defined(__MINGW32__) || defined (__CYGWIN__)
|
||||||
|
extern "C" char* vpip_format_pretty(vpiHandle ref);
|
||||||
vpip_routines_s vpi_routines = {
|
vpip_routines_s vpi_routines = {
|
||||||
.register_cb = vpi_register_cb,
|
.register_cb = vpi_register_cb,
|
||||||
.remove_cb = vpi_remove_cb,
|
.remove_cb = vpi_remove_cb,
|
||||||
|
|
@ -2098,6 +2099,7 @@ vpip_routines_s vpi_routines = {
|
||||||
.calc_clog2 = vpip_calc_clog2,
|
.calc_clog2 = vpip_calc_clog2,
|
||||||
.count_drivers = vpip_count_drivers,
|
.count_drivers = vpip_count_drivers,
|
||||||
.format_strength = vpip_format_strength,
|
.format_strength = vpip_format_strength,
|
||||||
|
.format_pretty = vpip_format_pretty,
|
||||||
.make_systf_system_defined = vpip_make_systf_system_defined,
|
.make_systf_system_defined = vpip_make_systf_system_defined,
|
||||||
.mcd_rawwrite = vpip_mcd_rawwrite,
|
.mcd_rawwrite = vpip_mcd_rawwrite,
|
||||||
.set_return_value = vpip_set_return_value,
|
.set_return_value = vpip_set_return_value,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue