Bill Allombert on Mon, 21 Jan 2013 17:32:17 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: A patch for native PARI/GP build on Windows (Mingw+Msys)


On Thu, Dec 17, 2009 at 06:07:10PM +0200, Vasili Burdo wrote:
> It includes:
> - Configuration changes to recognize Mingw build.
> - Native hires plotting for Windows.
> - Native support of Windows console including terminal size and colors.
> - All tests are passed for gp-syn. For gp-sta, tests involving
> install() fail.
> 
> This patch is based on current PARI SVN.
> Comments and suggestions are VERY welcome.

Hello Vasili, do you remember what you needed this change ?

 char *
 path_expand(const char *s)
 {
+#ifdef _WIN32
+  char *ss, *p;
+  ss = malloc(strlen(s)+1);
+  strcpy(ss,s);
+  for(p = ss; *p != 0; ++p) 	
+	if( *p == '\\' ) *p = '/';
+  p = _expand_env(_path_expand(ss));
+  free(ss);
+  return p;
+#else
   return _expand_env(_path_expand(s));
+#endif
 }

Cheers,
Bill.