Clean up warnings for round() function declaration.
[iverilog.git] / libveriuser / io_print.c
blob575f6bfc5d105c930d711d23bcd1ea70d39dab99
1 /*
2 * Copyright (c) 2002 Michael Ruff (mruff at chiaro.com)
4 * This source code is free software; you can redistribute it
5 * and/or modify it in source code form under the terms of the GNU
6 * General Public License as published by the Free Software
7 * Foundation; either version 2 of the License, or (at your option)
8 * any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19 #ifdef HAVE_CVS_IDENT
20 #ident "$Id: io_print.c,v 1.4 2002/12/19 21:37:04 steve Exp $"
21 #endif
23 # include <vpi_user.h>
24 # include <veriuser.h>
27 * io_printf implemented using VPI interface
29 void io_printf(const char *fmt, ...)
31 va_list ap;
32 va_start(ap, fmt);
33 vpi_vprintf(fmt, ap);
34 va_end(ap);
37 void tf_warning(const char *fmt, ...)
39 va_list ap;
41 vpi_printf("warning! ");
43 va_start(ap, fmt);
44 vpi_vprintf(fmt, ap);
45 va_end(ap);
48 void tf_error(const char *fmt, ...)
50 va_list ap;
52 vpi_printf("error! ");
54 va_start(ap, fmt);
55 vpi_vprintf(fmt, ap);
56 va_end(ap);
59 PLI_INT32 tf_message(PLI_INT32 level, char*facility,
60 char*messno, char*fmt, ...)
62 va_list ap;
64 vpi_printf("%s[%s] ", facility, messno);
66 va_start(ap, fmt);
67 vpi_vprintf(fmt, ap);
68 va_end(ap);
70 vpi_printf("\n");
71 return 0;
76 * $Log: io_print.c,v $
77 * Revision 1.4 2002/12/19 21:37:04 steve
78 * Add tf_message, tf_get/setworkarea, and
79 * ty_typep functions, along with defines
80 * related to these functions.
82 * Revision 1.3 2002/08/12 01:35:02 steve
83 * conditional ident string using autoconfig.
85 * Revision 1.2 2002/05/30 02:10:08 steve
86 * Add tf_error and tf_warning from mruff
88 * Revision 1.1 2002/05/23 03:35:42 steve
89 * Add the io_printf function to libveriuser.