Fix mingw portability problems.
This commit is contained in:
parent
0e797dc7bc
commit
e8a222e783
|
|
@ -18,7 +18,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
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CVS_IDENT
|
#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
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
@ -58,6 +58,7 @@ void veriusertfs_register_table(p_tfcell vtable)
|
||||||
p_tfcell tf;
|
p_tfcell tf;
|
||||||
s_vpi_systf_data tf_data;
|
s_vpi_systf_data tf_data;
|
||||||
p_pli_data data;
|
p_pli_data data;
|
||||||
|
char trace_buf[1024];
|
||||||
|
|
||||||
if (!pli_trace && (path = getenv("PLI_TRACE"))) {
|
if (!pli_trace && (path = getenv("PLI_TRACE"))) {
|
||||||
if (strcmp(path,"-") == 0)
|
if (strcmp(path,"-") == 0)
|
||||||
|
|
@ -68,7 +69,7 @@ void veriusertfs_register_table(p_tfcell vtable)
|
||||||
perror(path);
|
perror(path);
|
||||||
exit(1);
|
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 $
|
* $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
|
* Revision 1.13 2003/06/17 22:09:45 steve
|
||||||
* Better trace of PLI1 registration.
|
* Better trace of PLI1 registration.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,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
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CVS_IDENT
|
#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
|
#endif
|
||||||
|
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|
@ -55,6 +55,7 @@ extern "C" const char*optarg;
|
||||||
|
|
||||||
bool verbose_flag = false;
|
bool verbose_flag = false;
|
||||||
|
|
||||||
|
static char log_buffer[4096];
|
||||||
|
|
||||||
#if defined(HAVE_SYS_RESOURCE_H)
|
#if defined(HAVE_SYS_RESOURCE_H)
|
||||||
static void my_getrusage(struct rusage *a)
|
static void my_getrusage(struct rusage *a)
|
||||||
|
|
@ -197,7 +198,7 @@ int main(int argc, char*argv[])
|
||||||
perror(logfile_name);
|
perror(logfile_name);
|
||||||
exit(1);
|
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 $
|
* $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
|
* Revision 1.37 2003/06/13 19:51:08 steve
|
||||||
* Include verbose messages in log output.
|
* Include verbose messages in log output.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,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
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CVS_IDENT
|
#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
|
#endif
|
||||||
|
|
||||||
# include "vpi_priv.h"
|
# 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.argc = argc;
|
||||||
vpi_vlog_info.argv = argv;
|
vpi_vlog_info.argv = argv;
|
||||||
|
|
||||||
|
static char trace_buf[1024];
|
||||||
|
|
||||||
if (const char*path = getenv("VPI_TRACE")) {
|
if (const char*path = getenv("VPI_TRACE")) {
|
||||||
if (!strcmp(path,"-"))
|
if (!strcmp(path,"-"))
|
||||||
vpi_trace = stdout;
|
vpi_trace = stdout;
|
||||||
|
|
@ -346,7 +348,7 @@ void vpi_set_vlog_info(int argc, char** argv)
|
||||||
perror(path);
|
perror(path);
|
||||||
exit(1);
|
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 $
|
* $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
|
* Revision 1.42 2003/06/22 04:19:26 steve
|
||||||
* vpi_handle diagnostic message.
|
* vpi_handle diagnostic message.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -17,11 +17,10 @@ vpi_handle_by_index
|
||||||
vpi_handle_by_name
|
vpi_handle_by_name
|
||||||
vpi_iterate
|
vpi_iterate
|
||||||
vpi_mcd_close
|
vpi_mcd_close
|
||||||
vpi_mcd_fgetc
|
|
||||||
vpi_mcd_fputc
|
|
||||||
vpi_mcd_name
|
vpi_mcd_name
|
||||||
vpi_mcd_open
|
vpi_mcd_open
|
||||||
vpi_mcd_printf
|
vpi_mcd_printf
|
||||||
|
vpi_mcd_vprintf
|
||||||
vpi_printf
|
vpi_printf
|
||||||
vpi_put_userdata
|
vpi_put_userdata
|
||||||
vpi_put_value
|
vpi_put_value
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue