gnuplot update

This commit is contained in:
h_vogt 2010-01-02 15:24:03 +00:00
parent b500f3e32c
commit f34a09b540
3 changed files with 13 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2010-01-01 Holger Vogt
* winmain.c: internal system() no longer needed, its available
in mingw and MS Visual Studio.
gnuplot.c: small update, call to gnuplot tested up to ver. 4.2.6,
does not work for Windows and gnuplot 4.4.
2010-01-01 Holger Vogt
* spinit.in: Small update
gnuplot.c: calling gnuplot via xterm

View File

@ -209,10 +209,13 @@ ft_gnuplot(double *xlims, double *ylims, char *filename, char *title, char *xlab
(void) fclose( file_data );
#if defined(__MINGW32__) || defined(_MSC_VER)
(void) sprintf( buf, "start /B wgnuplot %s -" , filename_plt );
/* for external fcn system() */
// (void) sprintf( buf, "start /B wgnuplot %s -" , filename_plt );
(void) sprintf( buf, "start /B wgnuplot -persist %s " , filename_plt );
_flushall();
#else
(void) sprintf( buf, "xterm -e gnuplot %s - &", filename_plt );
/* for external fcn system() from LINUX environment */
(void) sprintf( buf, "xterm -e gnuplot %s - &", filename_plt );
#endif
err = system( buf );

View File

@ -1338,7 +1338,7 @@ size_t _memavl(void)
sum = ms.dwAvailPhys + ms.dwAvailPageFile;
return (size_t) sum;
}
*/
// ---------------------<Aufruf eines anderen Programms>-----------------------
#ifndef _MSC_VER
int system( const char * command)
@ -1386,7 +1386,7 @@ int system( const char * command)
return 0;
} // system Windows95
#endif
*/
/* Strip leading spaces, return a copy of s */
char* rlead(char *s)
{