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

Diff for /OpenXM_contrib2/windows/asir32gui/io.c between version 1.9 and 1.10

version 1.9, 2013/11/29 08:27:59 version 1.10, 2014/05/10 08:23:33
Line 11 
Line 11 
 #define ASIR_KEYNAME "SoftWare\\Fujitsu\\Asir\\1999.03.31"  #define ASIR_KEYNAME "SoftWare\\Fujitsu\\Asir\\1999.03.31"
   
 #define MAXHIST 256  #define MAXHIST 256
 #define HISTORY "history"  #define HISTORY "asirgui_history"
   
 static int use_current_dir;  static int use_current_dir;
   
Line 302  static char history_errmsg[BUFSIZ];
Line 302  static char history_errmsg[BUFSIZ];
 void init_input_history()  void init_input_history()
 {  {
         char rootdir[BUFSIZ];          char rootdir[BUFSIZ];
         get_rootdir(rootdir,sizeof(rootdir),history_errmsg);          char *env = getenv("TEMP");
         sprintf(history_path,"%s\\bin\\%s",rootdir,HISTORY);          if( env ) {
                   sprintf(history_path,"%s\\%s",env,HISTORY);
           }else {
                   get_rootdir(rootdir,sizeof(rootdir),history_errmsg);
                   sprintf(history_path,"%s\\bin\\%s",rootdir,HISTORY);
           }
         init_hist(MAXHIST);          init_hist(MAXHIST);
 }  }
   

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

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