Better typing for veriusertfs table.
This commit is contained in:
parent
a91c4f66ce
commit
7d1d3847d8
|
|
@ -18,7 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT)
|
#if !defined(WINNT)
|
||||||
#ident "$Id: veriusertfs.c,v 1.2 2002/05/31 18:21:39 steve Exp $"
|
#ident "$Id: veriusertfs.c,v 1.3 2002/06/03 00:08:42 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -135,7 +135,7 @@ static int compiletf(char *data)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* since we are in compiletf, misctf needs to fire */
|
/* since we are in compiletf, misctf needs to fire */
|
||||||
if (tf->misctf) tf->misctf(tf->data, reason_endofcompile);
|
if (tf->misctf) tf->misctf(tf->data, reason_endofcompile, 0);
|
||||||
|
|
||||||
/* similarly run checktf now */
|
/* similarly run checktf now */
|
||||||
if (tf->checktf)
|
if (tf->checktf)
|
||||||
|
|
@ -189,13 +189,16 @@ static int callback (p_cb_data data)
|
||||||
|
|
||||||
/* execute misctf */
|
/* execute misctf */
|
||||||
if (tf->misctf)
|
if (tf->misctf)
|
||||||
return tf->misctf(tf->data, reason);
|
return tf->misctf(tf->data, reason, 0);
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: veriusertfs.c,v $
|
* $Log: veriusertfs.c,v $
|
||||||
|
* Revision 1.3 2002/06/03 00:08:42 steve
|
||||||
|
* Better typing for veriusertfs table.
|
||||||
|
*
|
||||||
* Revision 1.2 2002/05/31 18:21:39 steve
|
* Revision 1.2 2002/05/31 18:21:39 steve
|
||||||
* Check for and don't dereference null pointers,
|
* Check for and don't dereference null pointers,
|
||||||
* Avoid copy of static objects.
|
* Avoid copy of static objects.
|
||||||
|
|
|
||||||
29
veriuser.h
29
veriuser.h
|
|
@ -19,16 +19,26 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT) && !defined(macintosh)
|
#if !defined(WINNT) && !defined(macintosh)
|
||||||
#ident "$Id: veriuser.h,v 1.10 2002/06/02 18:54:59 steve Exp $"
|
#ident "$Id: veriuser.h,v 1.11 2002/06/03 00:08:42 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This header file contains the definitions and declarations needed
|
* This header file contains the definitions and declarations needed
|
||||||
* by an Icarus Verilog user using tf_ routines.
|
* by an Icarus Verilog user using tf_ routines.
|
||||||
*
|
*
|
||||||
* NOTE: Icarus Verilog does not support tf_ routines. This is just a
|
* NOTE 1: Icarus Verilog does not directly support tf_ routines. This
|
||||||
* stub. The functions that are implemented here are actually
|
* header file defines a tf_ compatibility later. The functions that
|
||||||
* implemented using VPI routines.
|
* are implemented here are actually implemented using VPI routines.
|
||||||
|
*
|
||||||
|
* NOTE 2: The routines and definitions of the tf_ library were
|
||||||
|
* clearly not designed to account for C++, or even ANSI-C. This
|
||||||
|
* header file attempts to fix these problems in a source code
|
||||||
|
* compatible way. In the end, though, it is not completely
|
||||||
|
* possible. Instead, users should not use this or the acc_user.h
|
||||||
|
* header files or functions in new applications, and instead use the
|
||||||
|
* more modern vpi_user.h and VPI functions.
|
||||||
|
*
|
||||||
|
* This API is provided by Icarus Verilog only to support legacy software.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
@ -53,10 +63,10 @@ typedef struct t_tfcell
|
||||||
{
|
{
|
||||||
short type; /* usertask|userfunction|userrealfunction */
|
short type; /* usertask|userfunction|userrealfunction */
|
||||||
short data; /* data passed to user routine */
|
short data; /* data passed to user routine */
|
||||||
int (*checktf)(); /* pointer to checktf routine */
|
int (*checktf)(int user_data, int reason);
|
||||||
int (*sizetf)(); /* pointer to sizetf routine */
|
int (*sizetf)(int user_data, int reason);
|
||||||
int (*calltf)(); /* pointer to calltf routine */
|
int (*calltf)(int user_data, int reason);
|
||||||
int (*misctf)(); /* pointer to misctf routine */
|
int (*misctf)(int user_data, int reason, int paramvc);
|
||||||
char *tfname; /* name of the system task/function */
|
char *tfname; /* name of the system task/function */
|
||||||
int forwref; /* usually set to 1 */
|
int forwref; /* usually set to 1 */
|
||||||
char *tfveritool; /* usually ignored */
|
char *tfveritool; /* usually ignored */
|
||||||
|
|
@ -102,6 +112,9 @@ EXTERN_C_END
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: veriuser.h,v $
|
* $Log: veriuser.h,v $
|
||||||
|
* Revision 1.11 2002/06/03 00:08:42 steve
|
||||||
|
* Better typing for veriusertfs table.
|
||||||
|
*
|
||||||
* Revision 1.10 2002/06/02 18:54:59 steve
|
* Revision 1.10 2002/06/02 18:54:59 steve
|
||||||
* Add tf_getinstance function.
|
* Add tf_getinstance function.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue