Project

General

Profile

[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  IPC::Locker
  Parallel::Forker
  Voneline
General Info
  Papers

fix "fstapi.c" for MinGW

Added by HyungKi Jeong over 1 year ago

Some codes in the 'fstapi.c' for MinGW has an error.
So I fixed as shown below.

D:\Program\TestDrive\include\verilator\gtkwave>svn diff fstapi.c
Index: fstapi.c
===================================================================
--- fstapi.c    (revision 258)
+++ fstapi.c    (working copy)
@@ -295,7 +295,7 @@
 #ifdef __MINGW32__
 if(!resolved_path)
         {
-        resolved_path = (unsigned char *)malloc(PATH_MAX+1);
+        resolved_path = (char *)malloc(PATH_MAX+1);
         }
 return(_fullpath(resolved_path, path, PATH_MAX));
 #else
@@ -2162,7 +2162,7 @@
 #ifdef __MINGW32__
         {
         int flen = strlen(xc->filename);
-        char *hf = calloc(1, flen + 6);
+        char *hf = (char*)calloc(1, flen + 6);
         strcpy(hf, xc->filename);

         if(xc->compress_hier)


Replies (1)

RE: fix "fstapi.c" for MinGW - Added by Wilson Snyder over 1 year ago

Thanks for the report. Fixed in git and fed to GTKWave upstream.

    (1-1/1)