[BACK]Return to asir32guiview.cpp CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / windows / asir32gui

Diff for /OpenXM_contrib2/windows/asir32gui/asir32guiview.cpp between version 1.17 and 1.20

version 1.17, 2007/02/13 09:20:44 version 1.20, 2009/03/03 13:34:42
Line 17  static char THIS_FILE[] = __FILE__;
Line 17  static char THIS_FILE[] = __FILE__;
 #endif  #endif
   
 // const TextBufferSize     = 32768;  // const TextBufferSize     = 32768;
 const TextBufferSize     = 16384;  const int TextBufferSize     = 16384;
   
 CAsir32guiView *theView;  CAsir32guiView *theView;
   
Line 93  CAsir32guiView::CAsir32guiView()
Line 93  CAsir32guiView::CAsir32guiView()
 {  {
         // TODO: この場所に構築用のコードを追加してください。          // TODO: この場所に構築用のコードを追加してください。
         static int tmpView_created = 0;          static int tmpView_created = 0;
         char errmsg[BUFSIZ],view_handle[BUFSIZ];  
   
         init_input_history();          init_input_history();
         read_input_history();          read_input_history();
Line 242  void CAsir32guiView::DeleteTop()
Line 241  void CAsir32guiView::DeleteTop()
   const char *p,*q;    const char *p,*q;
   const char *buf;    const char *buf;
   char null = 0;    char null = 0;
   int len,len0,len1;    int len,len0;
   
   buf = LockBuffer();    buf = LockBuffer();
   len0 = len = strlen(buf);    len0 = len = strlen(buf);
Line 480  void CAsir32guiView::OnFileOpen() 
Line 479  void CAsir32guiView::OnFileOpen() 
                         if ( *p == '\\' )                          if ( *p == '\\' )
                                 *p = '/';                                  *p = '/';
                 put_line(cmd);                  put_line(cmd);
                 p = strrchr(pathName,'\\');                  strcpy(cmd,pathName);
                   p = strrchr(cmd,'\\');
                 if ( p ) {                  if ( p ) {
                         *p = 0;                          *p = 0;
                         strcpy(prevdir,pathName);                          strcpy(prevdir,cmd);
                 }                  }
         }          }
 }  }
Line 726  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
Line 726  BOOL CAsir32guiView::Create(LPCTSTR lpszClassName, LPC
         FILE *fp = fopen("asirgui.hnd","w");          FILE *fp = fopen("asirgui.hnd","w");
         char *temp;          char *temp;
   
         fprintf(fp,"%d",(unsigned int)theView->m_hWnd);          if ( fp ) {
         fclose(fp);  
         if ( temp = getenv("TEMP") ) {  
                 int len;  
                 char *name;  
   
                 len = strlen(temp);  
                 name = (char *)malloc(len+BUFSIZ);  
                 sprintf(name,"%s\\asirgui.hnd",temp);  
                 fopen(name,"w");  
                 fprintf(fp,"%d",(unsigned int)theView->m_hWnd);                  fprintf(fp,"%d",(unsigned int)theView->m_hWnd);
                 fclose(fp);                  fclose(fp);
                   if ( temp = getenv("TEMP") ) {
                           int len;
                           char *name;
   
                           len = strlen(temp);
                           name = (char *)malloc(len+BUFSIZ);
                           sprintf(name,"%s\\asirgui.hnd",temp);
                           fopen(name,"w");
                           fprintf(fp,"%d",(unsigned int)theView->m_hWnd);
                           fclose(fp);
                   }
         }          }
         return ret;          return ret;
 }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.20

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