Display the type name for bit variable (vpiBitVar).

Display vpiBitVar instead of 620 when asking for the type name of a
bit variable.
This commit is contained in:
Cary R 2011-09-05 14:40:31 -07:00 committed by Stephen Williams
parent ca6af1c20d
commit 40c37be307
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2008-2010 Stephen Williams (steve@icarus.com)
* Copyright (c) 2008-2011 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@ -256,6 +256,8 @@ static const char* vpi_type_values(PLI_INT32 code)
{
static char buf[32];
switch (code) {
case vpiBitVar:
return "vpiBitVar";
case vpiByteVar:
return "vpiByteVar";
case vpiConstant: