--- rawreader/src/filename.cpp 2006/09/01 10:56:23 1.1 +++ rawreader/src/filename.cpp 2006/12/10 12:21:29 1.2 @@ -25,33 +25,27 @@ remove(temp); strncat(strcpy(route_path,path),fno,3); - if (LINUX_flag==1) strcat(route_path,"/tmp.dat"); - if (LINUX_flag!=1) strcat(route_path,"\\tmp.dat"); + strcat(route_path,"/tmp.dat"); if ((ffiot=fopen(route_path,"w+"))==0) /*************Create directory mmm*************************/ { - if (LINUX_flag==1) strncat(strcat(strcat(strcat(strcpy(command,"mkdir "),path),name_route),"_"),fno,3); - if (LINUX_flag!=1) strncat(strcat(strcpy(command,"md "),path),fno,3); + strncat(strcat(strcat(strcat(strcpy(command,"mkdir "),path),name_route),"_"),fno,3); system(command); /**********************************************************/ /*************Create directory Cln1************************/ - if (LINUX_flag==1) strcat(command,"/Cln1"); - if (LINUX_flag!=1) strcat(command,"\\Cln1"); + strcat(command,"/Cln1"); system(command); /**********************************************************/ } - if (LINUX_flag==1) strcat(strncat(strcat(strcat(strcpy(name1,path),name_route),"_"),fno,3),"/Cln1/"); - if (LINUX_flag!=1) strcat(strncat(strcpy(name1,path),fno,3),"\\Cln1\\"); + strcat(strncat(strcat(strcat(strcpy(name1,path),name_route),"_"),fno,3),"/Cln1/"); strcat(strncat(strcat(strcat(strcat(name1,name_route),"_"),fno),ini_file,5),"_cln1Er.log"); - if (LINUX_flag==1) strcat(strncat(strcat(strcat(strcpy(name2,path),name_route),"_"),fno,3),"/Cln1/"); - if (LINUX_flag!=1) strcat(strncat(strcpy(name2,path),fno,3),"\\Cln1\\"); + strcat(strncat(strcat(strcat(strcpy(name2,path),name_route),"_"),fno,3),"/Cln1/"); strcat(strncat(strcat(strcat(strcat(name2,name_route),"_"),fno),ini_file,5),"_mis_cln1.dat"); - if (LINUX_flag==1) strcat(strncat(strcat(strcat(strcpy(cln1,path),name_route),"_"),fno,3),"/Cln1/"); - if (LINUX_flag!=1) strcat(strncat(strcpy(cln1,path),fno,3),"\\Cln1\\"); + strcat(strncat(strcat(strcat(strcpy(cln1,path),name_route),"_"),fno,3),"/Cln1/"); strcat(strncat(strcat(strcat(strcat(cln1,name_route),"_"),fno),ini_file,5),"_cln1.pam"); if (ffiot!=0) {fclose(ffiot); remove(route_path);} }