Add the io_printf function to libveriuser.
This commit is contained in:
parent
004bfad348
commit
8dd4f77f3f
|
|
@ -16,7 +16,7 @@
|
||||||
# 59 Temple Place - Suite 330
|
# 59 Temple Place - Suite 330
|
||||||
# Boston, MA 02111-1307, USA
|
# Boston, MA 02111-1307, USA
|
||||||
#
|
#
|
||||||
#ident "$Id: Makefile.in,v 1.1 2002/05/19 05:21:00 steve Exp $"
|
#ident "$Id: Makefile.in,v 1.2 2002/05/23 03:35:42 steve Exp $"
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
|
|
@ -44,7 +44,7 @@ CFLAGS = @CFLAGS@
|
||||||
LDFLAGS = @LDFLAGS@
|
LDFLAGS = @LDFLAGS@
|
||||||
STRIP = @STRIP@
|
STRIP = @STRIP@
|
||||||
|
|
||||||
O = finish.o
|
O = finish.o io_print.o
|
||||||
|
|
||||||
all: libveriuser.a
|
all: libveriuser.a
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2002 Michael Ruff (mruff at chiaro.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
|
||||||
|
* General Public License as published by the Free Software
|
||||||
|
* Foundation; either version 2 of the License, or (at your option)
|
||||||
|
* any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
|
*/
|
||||||
|
#if !defined(WINNT)
|
||||||
|
#ident "$Id: io_print.c,v 1.1 2002/05/23 03:35:42 steve Exp $"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
# include <vpi_user.h>
|
||||||
|
# include <veriuser.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* io_printf implemented using VPI interface
|
||||||
|
*/
|
||||||
|
void io_printf(const char *fmt, ...)
|
||||||
|
{
|
||||||
|
va_list ap;
|
||||||
|
va_start(ap, fmt);
|
||||||
|
vpi_vprintf(fmt, ap);
|
||||||
|
va_end(ap);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* $Log: io_print.c,v $
|
||||||
|
* Revision 1.1 2002/05/23 03:35:42 steve
|
||||||
|
* Add the io_printf function to libveriuser.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
#if !defined(WINNT) && !defined(macintosh)
|
#if !defined(WINNT) && !defined(macintosh)
|
||||||
#ident "$Id: veriuser.h,v 1.1 2002/05/19 05:21:00 steve Exp $"
|
#ident "$Id: veriuser.h,v 1.2 2002/05/23 03:35:42 steve Exp $"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -41,6 +41,8 @@
|
||||||
|
|
||||||
EXTERN_C_START
|
EXTERN_C_START
|
||||||
|
|
||||||
|
extern void io_printf (const char *, ...);
|
||||||
|
|
||||||
extern int tf_dofinish(void);
|
extern int tf_dofinish(void);
|
||||||
extern int tf_dostop(void);
|
extern int tf_dostop(void);
|
||||||
|
|
||||||
|
|
@ -48,6 +50,9 @@ EXTERN_C_END
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: veriuser.h,v $
|
* $Log: veriuser.h,v $
|
||||||
|
* Revision 1.2 2002/05/23 03:35:42 steve
|
||||||
|
* Add the io_printf function to libveriuser.
|
||||||
|
*
|
||||||
* Revision 1.1 2002/05/19 05:21:00 steve
|
* Revision 1.1 2002/05/19 05:21:00 steve
|
||||||
* Start the libveriuser library.
|
* Start the libveriuser library.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue