diff --git a/libveriuser/veriusertfs.c b/libveriuser/veriusertfs.c index 835c448be..96b883588 100644 --- a/libveriuser/veriusertfs.c +++ b/libveriuser/veriusertfs.c @@ -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.13 2003/06/17 22:09:45 steve Exp $" +#ident "$Id: veriusertfs.c,v 1.14 2003/06/25 04:04:19 steve Exp $" #endif /* @@ -58,6 +58,7 @@ void veriusertfs_register_table(p_tfcell vtable) p_tfcell tf; s_vpi_systf_data tf_data; p_pli_data data; + char trace_buf[1024]; if (!pli_trace && (path = getenv("PLI_TRACE"))) { if (strcmp(path,"-") == 0) @@ -68,7 +69,7 @@ void veriusertfs_register_table(p_tfcell vtable) perror(path); exit(1); } - setlinebuf(pli_trace); + setvbuf(pli_trace, trace_buf, _IOLBF, sizeof(trace_buf)); } } @@ -388,6 +389,9 @@ PLI_INT32 tf_setrealdelay(double dly) } /* * $Log: veriusertfs.c,v $ + * Revision 1.14 2003/06/25 04:04:19 steve + * Fix mingw portability problems. + * * Revision 1.13 2003/06/17 22:09:45 steve * Better trace of PLI1 registration. * diff --git a/vvp/main.cc b/vvp/main.cc index c40b68f0c..dc2d5acb9 100644 --- a/vvp/main.cc +++ b/vvp/main.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: main.cc,v 1.37 2003/06/13 19:51:08 steve Exp $" +#ident "$Id: main.cc,v 1.38 2003/06/25 04:04:19 steve Exp $" #endif # include "config.h" @@ -55,6 +55,7 @@ extern "C" const char*optarg; bool verbose_flag = false; +static char log_buffer[4096]; #if defined(HAVE_SYS_RESOURCE_H) static void my_getrusage(struct rusage *a) @@ -197,7 +198,7 @@ int main(int argc, char*argv[]) perror(logfile_name); exit(1); } - setlinebuf(logfile); + setvbuf(logfile, log_buffer, _IOLBF, sizeof(log_buffer)); } } @@ -276,6 +277,9 @@ int main(int argc, char*argv[]) /* * $Log: main.cc,v $ + * Revision 1.38 2003/06/25 04:04:19 steve + * Fix mingw portability problems. + * * Revision 1.37 2003/06/13 19:51:08 steve * Include verbose messages in log output. * diff --git a/vvp/vpi_priv.cc b/vvp/vpi_priv.cc index 4c3f21de8..2d2b3e0d7 100644 --- a/vvp/vpi_priv.cc +++ b/vvp/vpi_priv.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: vpi_priv.cc,v 1.42 2003/06/22 04:19:26 steve Exp $" +#ident "$Id: vpi_priv.cc,v 1.43 2003/06/25 04:04:19 steve Exp $" #endif # include "vpi_priv.h" @@ -337,6 +337,8 @@ void vpi_set_vlog_info(int argc, char** argv) vpi_vlog_info.argc = argc; vpi_vlog_info.argv = argv; + static char trace_buf[1024]; + if (const char*path = getenv("VPI_TRACE")) { if (!strcmp(path,"-")) vpi_trace = stdout; @@ -346,7 +348,7 @@ void vpi_set_vlog_info(int argc, char** argv) perror(path); exit(1); } - setlinebuf(vpi_trace); + setvbuf(vpi_trace, trace_buf, _IOLBF, sizeof(trace_buf)); } } } @@ -644,6 +646,9 @@ extern "C" void vpi_control(int operation, ...) /* * $Log: vpi_priv.cc,v $ + * Revision 1.43 2003/06/25 04:04:19 steve + * Fix mingw portability problems. + * * Revision 1.42 2003/06/22 04:19:26 steve * vpi_handle diagnostic message. * diff --git a/vvp/vvp.def b/vvp/vvp.def index 7c4c5cf69..16ca5a6ee 100644 --- a/vvp/vvp.def +++ b/vvp/vvp.def @@ -17,11 +17,10 @@ vpi_handle_by_index vpi_handle_by_name vpi_iterate vpi_mcd_close -vpi_mcd_fgetc -vpi_mcd_fputc vpi_mcd_name vpi_mcd_open vpi_mcd_printf +vpi_mcd_vprintf vpi_printf vpi_put_userdata vpi_put_value