Skip to content

Commit

Permalink
Fix type mismatches of various VPI functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Feb 18, 2004
1 parent 38ec4b7 commit 17c891b
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 21 deletions.
7 changes: 5 additions & 2 deletions libveriuser/a_compare_handles.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: a_compare_handles.c,v 1.2 2003/08/26 16:26:02 steve Exp $"
#ident "$Id: a_compare_handles.c,v 1.3 2004/02/18 02:51:59 steve Exp $"
#endif

# include <vpi_user.h>
# include <acc_user.h>

int acc_compare_handles(handle handle1, handle handle2)
PLI_INT32 acc_compare_handles(handle handle1, handle handle2)
{
return handle1 == handle2;
}

/*
* $Log: a_compare_handles.c,v $
* Revision 1.3 2004/02/18 02:51:59 steve
* Fix type mismatches of various VPI functions.
*
* Revision 1.2 2003/08/26 16:26:02 steve
* ifdef idents correctly.
*
Expand Down
7 changes: 5 additions & 2 deletions libveriuser/a_fetch_range.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: a_fetch_range.c,v 1.1 2003/06/04 01:56:20 steve Exp $"
#ident "$Id: a_fetch_range.c,v 1.2 2004/02/18 02:51:59 steve Exp $"
#endif

#include <vpi_user.h>
Expand All @@ -26,7 +26,7 @@
/*
* acc_fetch_range implemented using VPI interface
*/
PLI_INT32 acc_fetch_range(handle object, PLI_INT32 *msb, PLI_INT32 *lsb)
PLI_INT32 acc_fetch_range(handle object, int *msb, int *lsb)
{
*msb = vpi_get(vpiLeftRange, object);
*lsb = vpi_get(vpiRightRange, object);
Expand All @@ -35,6 +35,9 @@ PLI_INT32 acc_fetch_range(handle object, PLI_INT32 *msb, PLI_INT32 *lsb)

/*
* $Log: a_fetch_range.c,v $
* Revision 1.2 2004/02/18 02:51:59 steve
* Fix type mismatches of various VPI functions.
*
* Revision 1.1 2003/06/04 01:56:20 steve
* 1) Adds configure logic to clean up compiler warnings
* 2) adds acc_compare_handle, acc_fetch_range, acc_next_scope and
Expand Down
7 changes: 5 additions & 2 deletions libveriuser/a_fetch_tfarg.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: a_fetch_tfarg.c,v 1.8 2003/06/14 01:16:17 steve Exp $"
#ident "$Id: a_fetch_tfarg.c,v 1.9 2004/02/18 02:51:59 steve Exp $"
#endif

#include <vpi_user.h>
Expand Down Expand Up @@ -56,7 +56,7 @@ double acc_fetch_itfarg(PLI_INT32 n, handle obj)
return rtn;
}

double acc_fetch_tfarg(int n)
double acc_fetch_tfarg(PLI_INT32 n)
{
return acc_fetch_itfarg_int(n, vpi_handle(vpiSysTfCall,0));
}
Expand Down Expand Up @@ -134,6 +134,9 @@ char *acc_fetch_tfarg_str(PLI_INT32 n)

/*
* $Log: a_fetch_tfarg.c,v $
* Revision 1.9 2004/02/18 02:51:59 steve
* Fix type mismatches of various VPI functions.
*
* Revision 1.8 2003/06/14 01:16:17 steve
* ihand is system task, not scope.
*
Expand Down
9 changes: 6 additions & 3 deletions libveriuser/a_object_of_type.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: a_object_of_type.c,v 1.5 2003/06/04 01:56:20 steve Exp $"
#ident "$Id: a_object_of_type.c,v 1.6 2004/02/18 02:51:59 steve Exp $"
#endif

#include <assert.h>
Expand All @@ -28,7 +28,7 @@
/*
* acc_object_of_type implemented using VPI interface
*/
PLI_INT32 acc_object_of_type(handle object, PLI_INT32 type)
int acc_object_of_type(handle object, PLI_INT32 type)
{
int vtype;
int rtn = 0; /* false */
Expand Down Expand Up @@ -86,7 +86,7 @@ PLI_INT32 acc_object_of_type(handle object, PLI_INT32 type)
return rtn;
}

PLI_INT32 acc_object_in_typelist(handle object, PLI_INT32*typelist)
int acc_object_in_typelist(handle object, PLI_INT32*typelist)
{
while (typelist[0] != 0) {
int rtn = acc_object_of_type(object, typelist[0]);
Expand All @@ -101,6 +101,9 @@ PLI_INT32 acc_object_in_typelist(handle object, PLI_INT32*typelist)

/*
* $Log: a_object_of_type.c,v $
* Revision 1.6 2004/02/18 02:51:59 steve
* Fix type mismatches of various VPI functions.
*
* Revision 1.5 2003/06/04 01:56:20 steve
* 1) Adds configure logic to clean up compiler warnings
* 2) adds acc_compare_handle, acc_fetch_range, acc_next_scope and
Expand Down
7 changes: 5 additions & 2 deletions vvp/vpi_callback.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: vpi_callback.cc,v 1.32 2003/09/09 00:56:45 steve Exp $"
#ident "$Id: vpi_callback.cc,v 1.33 2004/02/18 02:51:59 steve Exp $"
#endif

/*
Expand Down Expand Up @@ -486,7 +486,7 @@ vpiHandle vpi_register_cb(p_cb_data data)
* it clears the reference to the user callback function. This causes
* the callback to quietly reap itself.
*/
int vpi_remove_cb(vpiHandle ref)
PLI_INT32 vpi_remove_cb(vpiHandle ref)
{
assert(ref);
assert(ref->vpi_type);
Expand Down Expand Up @@ -564,6 +564,9 @@ void callback_functor_s::set(vvp_ipoint_t, bool, unsigned val, unsigned)

/*
* $Log: vpi_callback.cc,v $
* Revision 1.33 2004/02/18 02:51:59 steve
* Fix type mismatches of various VPI functions.
*
* Revision 1.32 2003/09/09 00:56:45 steve
* Reimpelement scheduler to divide nonblocking assign queue out.
*
Expand Down
17 changes: 10 additions & 7 deletions vvp/vpi_priv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: vpi_priv.cc,v 1.43 2003/06/25 04:04:19 steve Exp $"
#ident "$Id: vpi_priv.cc,v 1.44 2004/02/18 02:51:59 steve Exp $"
#endif

# include "vpi_priv.h"
Expand Down Expand Up @@ -104,7 +104,7 @@ const char* vpip_name_string(const char*text)

return res;
}
int vpi_chk_error(p_vpi_error_info info)
PLI_INT32 vpi_chk_error(p_vpi_error_info info)
{
if (vpip_last_error.state == 0)
return 0;
Expand All @@ -126,7 +126,7 @@ int vpi_chk_error(p_vpi_error_info info)
*/
struct __vpiSysTaskCall*vpip_cur_task = 0;

int vpi_free_object(vpiHandle ref)
PLI_INT32 vpi_free_object(vpiHandle ref)
{
int rtn;

Expand Down Expand Up @@ -197,7 +197,7 @@ static const char* vpi_type_values(PLI_INT32 code)
return buf;
}

int vpi_get(int property, vpiHandle ref)
PLI_INT32 vpi_get(int property, vpiHandle ref)
{
if (ref == 0)
return vpip_get_global(property);
Expand Down Expand Up @@ -320,7 +320,7 @@ void vpi_get_time(vpiHandle obj, s_vpi_time*vp)
}
}

int vpi_get_vlog_info(p_vpi_vlog_info vlog_info_p)
PLI_INT32 vpi_get_vlog_info(p_vpi_vlog_info vlog_info_p)
{
if (vlog_info_p != 0) {
*vlog_info_p = vpi_vlog_info;
Expand Down Expand Up @@ -628,15 +628,15 @@ extern "C" void vpi_sim_vcontrol(int operation, va_list ap)
}
}

extern "C" void vpi_sim_control(int operation, ...)
extern "C" void vpi_sim_control(PLI_INT32 operation, ...)
{
va_list ap;
va_start(ap, operation);
vpi_sim_vcontrol(operation, ap);
va_end(ap);
}

extern "C" void vpi_control(int operation, ...)
extern "C" void vpi_control(PLI_INT32 operation, ...)
{
va_list ap;
va_start(ap, operation);
Expand All @@ -646,6 +646,9 @@ extern "C" void vpi_control(int operation, ...)

/*
* $Log: vpi_priv.cc,v $
* Revision 1.44 2004/02/18 02:51:59 steve
* Fix type mismatches of various VPI functions.
*
* Revision 1.43 2003/06/25 04:04:19 steve
* Fix mingw portability problems.
*
Expand Down
9 changes: 6 additions & 3 deletions vvp/vpi_tasks.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: vpi_tasks.cc,v 1.25 2003/12/07 20:05:56 steve Exp $"
#ident "$Id: vpi_tasks.cc,v 1.26 2004/02/18 02:51:59 steve Exp $"
#endif

/*
Expand Down Expand Up @@ -69,7 +69,7 @@ static vpiHandle systask_handle(int type, vpiHandle ref)
};
}

static PLI_INT32 systask_get(int type, vpiHandle ref)
static int systask_get(int type, vpiHandle ref)
{
struct __vpiSysTaskCall*rfp = (struct __vpiSysTaskCall*)ref;

Expand Down Expand Up @@ -465,7 +465,7 @@ void vpi_register_systf(const struct t_vpi_systf_data*ss)
cur->info.tfname = strdup(ss->tfname);
}

int vpi_put_userdata(vpiHandle ref, void*data)
PLI_INT32 vpi_put_userdata(vpiHandle ref, void*data)
{
struct __vpiSysTaskCall*rfp = (struct __vpiSysTaskCall*)ref;
assert((ref->vpi_type->type_code == vpiSysTaskCall)
Expand All @@ -487,6 +487,9 @@ void* vpi_get_userdata(vpiHandle ref)

/*
* $Log: vpi_tasks.cc,v $
* Revision 1.26 2004/02/18 02:51:59 steve
* Fix type mismatches of various VPI functions.
*
* Revision 1.25 2003/12/07 20:05:56 steve
* Ducument lxt2 access.
*
Expand Down

0 comments on commit 17c891b

Please sign in to comment.