]> henry.ined.fr Git - .git/commitdiff
*** empty log message ***
authorN. Brouard <brouard@ined.fr>
Wed, 27 Aug 2014 17:11:51 +0000 (17:11 +0000)
committerN. Brouard <brouard@ined.fr>
Wed, 27 Aug 2014 17:11:51 +0000 (17:11 +0000)
src/imach.c

index 6124903dca2bd3bcd7f2d6abf66126ed3570f461..a8bba7877d07464a2656883155f2ad88b11180dd 100644 (file)
@@ -1,6 +1,16 @@
 /* $Id$
   $State$
   $Log$
+  Revision 1.157  2014/08/27 16:26:55  brouard
+  Summary: Preparing windows Visual studio version
+  Author: Brouard
+
+  In order to compile on Visual studio, time.h is now correct and time_t
+  and tm struct should be used. difftime should be used but sometimes I
+  just make the differences in raw time format (time(&now).
+  Trying to suppress #ifdef LINUX
+  Add xdg-open for __linux in order to open default browser.
+
   Revision 1.156  2014/08/25 20:10:10  brouard
   *** empty log message ***
 
@@ -6686,15 +6696,15 @@ Interval (in months) between two waves: Min=%d Max=%d Mean=%.2lf<br>\n",\
   sprintf(plotcmd,"\"%sgnuplot.exe\"",pathimach);
 #endif
   if(!stat(plotcmd,&info)){
-    printf("Error or gnuplot program not found: %s\n",plotcmd);fflush(stdout);
+    printf("Error or gnuplot program not found: '%s'\n",plotcmd);fflush(stdout);
     if(!stat(getenv("GNUPLOTBIN"),&info)){
-      printf("Error or gnuplot program not found: %s Environment GNUPLOTBIN not set.\n",plotcmd);fflush(stdout);
+      printf("Error or gnuplot program not found: '%s' Environment GNUPLOTBIN not set.\n",plotcmd);fflush(stdout);
     }else
       strcpy(pplotcmd,plotcmd);
 #ifdef __unix
     strcpy(plotcmd,GNUPLOTPROGRAM);
     if(!stat(plotcmd,&info)){
-      printf("Error gnuplot program not found: %s\n",plotcmd);fflush(stdout);
+      printf("Error gnuplot program not found: '%s'\n",plotcmd);fflush(stdout);
     }else
       strcpy(pplotcmd,plotcmd);
 #endif
@@ -6702,23 +6712,23 @@ Interval (in months) between two waves: Min=%d Max=%d Mean=%.2lf<br>\n",\
     strcpy(pplotcmd,plotcmd);
   
   sprintf(plotcmd,"%s %s",pplotcmd, optionfilegnuplot);
-  printf("Starting graphs with: %s\n",plotcmd);fflush(stdout);
+  printf("Starting graphs with: '%s'\n",plotcmd);fflush(stdout);
 
   if((outcmd=system(plotcmd)) != 0){
-    printf("gnuplot command might not be in your path: %s, err=%d\n", plotcmd, outcmd);
+    printf("gnuplot command might not be in your path: '%s', err=%d\n", plotcmd, outcmd);
     printf("\n Trying if gnuplot resides on the same directory that IMaCh\n");
     sprintf(plotcmd,"%sgnuplot %s", pathimach, optionfilegnuplot);
     if((outcmd=system(plotcmd)) != 0)
       printf("\n Still a problem with gnuplot command %s, err=%d\n", plotcmd, outcmd);
   }
-  printf(" Successul, please wait...");
+  printf(" Successful, please wait...");
   while (z[0] != 'q') {
     /* chdir(path); */
     printf("\nType e to edit results with your browser, g to graph again and q for exit: ");
     scanf("%s",z);
 /*     if (z[0] == 'c') system("./imach"); */
     if (z[0] == 'e') {
-#ifdef _APPLE_
+#ifdef __APPLE__
       sprintf(pplotcmd, "open %s", optionfilehtm);
 #elif __linux
       sprintf(pplotcmd, "xdg-open %s", optionfilehtm);