Change the IV veriusertfs_register to accept table pointers.
This commit is contained in:
parent
66785b7997
commit
f00a6e5419
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CVS_IDENT
|
#ifdef HAVE_CVS_IDENT
|
||||||
#ident "$Id: veriusertfs.c,v 1.5 2002/08/12 01:35:02 steve Exp $"
|
#ident "$Id: veriusertfs.c,v 1.6 2003/02/16 02:23:14 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -48,13 +48,13 @@ static int callback(p_cb_data);
|
||||||
/*
|
/*
|
||||||
* Register veriusertfs routines/wrappers.
|
* Register veriusertfs routines/wrappers.
|
||||||
*/
|
*/
|
||||||
void veriusertfs_register()
|
void veriusertfs_register_table(p_tfcell vtable)
|
||||||
{
|
{
|
||||||
p_tfcell tf;
|
p_tfcell tf;
|
||||||
s_vpi_systf_data tf_data;
|
s_vpi_systf_data tf_data;
|
||||||
p_pli_data data;
|
p_pli_data data;
|
||||||
|
|
||||||
for (tf = veriusertfs; tf; tf++) {
|
for (tf = vtable; tf; tf++) {
|
||||||
/* last element */
|
/* last element */
|
||||||
if (tf->type == 0) break;
|
if (tf->type == 0) break;
|
||||||
|
|
||||||
|
|
@ -84,6 +84,7 @@ void veriusertfs_register()
|
||||||
continue;
|
continue;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
tf_data.tfname = tf->tfname;
|
tf_data.tfname = tf->tfname;
|
||||||
tf_data.compiletf = compiletf;
|
tf_data.compiletf = compiletf;
|
||||||
tf_data.calltf = calltf;
|
tf_data.calltf = calltf;
|
||||||
|
|
@ -207,6 +208,9 @@ static int callback(p_cb_data data)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: veriusertfs.c,v $
|
* $Log: veriusertfs.c,v $
|
||||||
|
* Revision 1.6 2003/02/16 02:23:14 steve
|
||||||
|
* Change the IV veriusertfs_register to accept table pointers.
|
||||||
|
*
|
||||||
* Revision 1.5 2002/08/12 01:35:02 steve
|
* Revision 1.5 2002/08/12 01:35:02 steve
|
||||||
* conditional ident string using autoconfig.
|
* conditional ident string using autoconfig.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,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
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CVS_IDENT
|
#ifdef HAVE_CVS_IDENT
|
||||||
#ident "$Id: veriuser.h,v 1.18 2002/12/19 21:37:04 steve Exp $"
|
#ident "$Id: veriuser.h,v 1.19 2003/02/16 02:23:22 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -130,7 +130,7 @@ typedef struct t_tfcell
|
||||||
* void (*vlog_startup_routines[])() = { &veriusertfs_register };
|
* void (*vlog_startup_routines[])() = { &veriusertfs_register };
|
||||||
*/
|
*/
|
||||||
extern s_tfcell veriusertfs[];
|
extern s_tfcell veriusertfs[];
|
||||||
extern void veriusertfs_register();
|
extern void veriusertfs_register_table(p_tfcell vtable);
|
||||||
|
|
||||||
#define usertask 1
|
#define usertask 1
|
||||||
#define userfunction 2
|
#define userfunction 2
|
||||||
|
|
@ -258,6 +258,9 @@ EXTERN_C_END
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: veriuser.h,v $
|
* $Log: veriuser.h,v $
|
||||||
|
* Revision 1.19 2003/02/16 02:23:22 steve
|
||||||
|
* Change the IV veriusertfs_register to accept table pointers.
|
||||||
|
*
|
||||||
* Revision 1.18 2002/12/19 21:37:04 steve
|
* Revision 1.18 2002/12/19 21:37:04 steve
|
||||||
* Add tf_message, tf_get/setworkarea, and
|
* Add tf_message, tf_get/setworkarea, and
|
||||||
* ty_typep functions, along with defines
|
* ty_typep functions, along with defines
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue