[BACK]Return to cmdasir.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / post-msg-asirgui

Diff for /OpenXM_contrib2/windows/post-msg-asirgui/cmdasir.c between version 1.9 and 1.10

version 1.9, 2014/05/10 08:23:33 version 1.10, 2014/05/25 21:01:04
Line 1 
Line 1 
 /* $OpenXM: OpenXM_contrib2/windows/post-msg-asirgui/cmdasir.c,v 1.8 2013/11/28 18:53:32 ohara Exp $ */  /* $OpenXM: OpenXM_contrib2/windows/post-msg-asirgui/cmdasir.c,v 1.9 2014/05/10 08:23:33 ohara Exp $ */
 // cl test.c user32.lib  // cl test.c user32.lib
   
 #include <windows.h>  #include <windows.h>
Line 57  int main(int argc, char *argv[])
Line 57  int main(int argc, char *argv[])
   int paste_contents=0;    int paste_contents=0;
   int abort=0;    int abort=0;
   
   /* MessageBox(NULL,TEXT("test"),TEXT("Error in cmdasir.c"),MB_OK); */    /* MessageBox(NULL,TEXT("test"),TEXT("ERROR in cmdasir.c"),MB_OK); */
   sprintf(snameWin,"%s\\cmdasir-%d.txt",getenv("TEMP"),_getpid());    sprintf(snameWin,"%s\\cmdasir-%d.txt",getenv("TEMP"),_getpid());
   snameUx = winname2uxname(snameWin);    snameUx = winname2uxname(snameWin);
   if ((argc > 1) && (strcmp(argv[1],"--delete-tmp")==0)) {    if ((argc > 1) && (strcmp(argv[1],"--delete-tmp")==0)) {
Line 90  int main(int argc, char *argv[])
Line 90  int main(int argc, char *argv[])
       fp2 = fopen(snameUx,"w");        fp2 = fopen(snameUx,"w");
       if (fp2 == NULL) {        if (fp2 == NULL) {
         sprintf(msg,"File %s to load is not found.",argv[ii]);          sprintf(msg,"File %s to load is not found.",argv[ii]);
         MessageBox(NULL,TEXT(msg),TEXT("Error in cmdasir.c"), MB_OK);          MessageBox(NULL,TEXT(msg),TEXT("ERROR in cmdasir.c"), MB_OK);
         return(-1);          return(-1);
       }        }
       while ((c=fgetc(fp)) >= 0) fputc(c,fp2);        while ((c=fgetc(fp)) >= 0) fputc(c,fp2);

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>