Clean up warnings for round() function declaration.
[iverilog.git] / libveriuser / spname.c
blobff785177be67d428a1cb0091f654479e3f73839d
1 /*
2 * Copyright (c) 2003 Stephen Williams (steve@icarus.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: spname.c,v 1.4 2003/06/17 16:55:08 steve Exp $"
21 #endif
23 #include <assert.h>
24 #include <vpi_user.h>
25 #include <veriuser.h>
26 #include "priv.h"
28 char* tf_spname(void)
30 char*rtn;
32 vpiHandle sys = vpi_handle(vpiSysTfCall, 0);
33 vpiHandle scope = vpi_handle(vpiScope, sys);
35 rtn = __acc_newstring(vpi_get_str(vpiFullName, scope));
37 if (pli_trace) {
38 fprintf(pli_trace, "%s: tf_spname() --> %s\n",
39 vpi_get_str(vpiName,sys), rtn);
42 return rtn;
45 char *tf_imipname(void *obj)
47 return vpi_get_str(vpiFullName, vpi_handle(vpiScope, (vpiHandle)obj));
50 char *tf_mipname(void)
52 return tf_imipname(vpi_handle(vpiSysTfCall,0));
56 * $Log: spname.c,v $
57 * Revision 1.4 2003/06/17 16:55:08 steve
58 * 1) setlinebuf() for vpi_trace
59 * 2) Addes error checks for trace file opens
60 * 3) removes now extraneous flushes
61 * 4) fixes acc_next() bug
63 * Revision 1.3 2003/05/29 03:46:21 steve
64 * Add tf_getp/putp support for integers
65 * and real valued arguments.
67 * Add tf_mipname function.
69 * Revision 1.2 2003/05/18 00:16:35 steve
70 * Add PLI_TRACE tracing of PLI1 modules.
72 * Add tf_isetdelay and friends, and add
73 * callback return values for acc_vcl support.
75 * Revision 1.1 2003/03/13 04:35:09 steve
76 * Add a bunch of new acc_ and tf_ functions.