Change the IV veriusertfs_register to accept table pointers.

This commit is contained in:
steve 2003-02-16 02:23:14 +00:00
parent 66785b7997
commit f00a6e5419
2 changed files with 12 additions and 5 deletions

View File

@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#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
/*
@ -48,13 +48,13 @@ static int callback(p_cb_data);
/*
* Register veriusertfs routines/wrappers.
*/
void veriusertfs_register()
void veriusertfs_register_table(p_tfcell vtable)
{
p_tfcell tf;
s_vpi_systf_data tf_data;
p_pli_data data;
for (tf = veriusertfs; tf; tf++) {
for (tf = vtable; tf; tf++) {
/* last element */
if (tf->type == 0) break;
@ -84,6 +84,7 @@ void veriusertfs_register()
continue;
break;
}
tf_data.tfname = tf->tfname;
tf_data.compiletf = compiletf;
tf_data.calltf = calltf;
@ -207,6 +208,9 @@ static int callback(p_cb_data data)
/*
* $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
* conditional ident string using autoconfig.
*

View File

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#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
/*
@ -130,7 +130,7 @@ typedef struct t_tfcell
* void (*vlog_startup_routines[])() = { &veriusertfs_register };
*/
extern s_tfcell veriusertfs[];
extern void veriusertfs_register();
extern void veriusertfs_register_table(p_tfcell vtable);
#define usertask 1
#define userfunction 2
@ -258,6 +258,9 @@ EXTERN_C_END
/*
* $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
* Add tf_message, tf_get/setworkarea, and
* ty_typep functions, along with defines