- Timestamp:
- 05/08/08 16:38:00 (17 years ago)
- Branches:
- master, help
- Children:
- 9b57c4d
- Parents:
- 0e3df7e
- git-author:
- obrebski <obrebski@…> (05/08/08 16:38:00)
- git-committer:
- obrebski <obrebski@…> (05/08/08 16:38:00)
- Location:
- app/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
app/src/common/common.cc
r0e3df7e r40358d2 195 195 // sprawdza istnienie pliku 196 196 int file_accessible(const char* path) { 197 197 return access(path, R_OK); 198 198 } 199 199 -
app/src/cor/common_cor.cc
r25ae32e r40358d2 10 10 { 11 11 expand_path(args->dictionary_arg,dictionary); 12 if(file_accessible(dictionary)!=0) 13 { 14 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 15 exit(1); 16 } 12 17 } 13 18 else if (args->dictionary_home_given && args->language_given) … … 16 21 expand_path(args->dictionary_home_arg, buf); 17 22 sprintf(dictionary,"%s/%s/cor.bin",buf,args->language_arg); 23 if(file_accessible(dictionary)!=0) 24 { 25 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 26 exit(1); 27 } 18 28 } 19 29 } -
app/src/gue/common_guess.cc
r25ae32e r40358d2 16 16 { 17 17 expand_path(args->dictionary_arg,dictionary); 18 if(file_accessible(dictionary)!=0) 19 { 20 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 21 exit(1); 22 } 18 23 } 19 24 else if (args->dictionary_home_given && args->language_given) … … 22 27 expand_path(args->dictionary_home_arg, buf); 23 28 sprintf(dictionary,"%s/%s/lem.bin",buf,args->language_arg); 29 if(file_accessible(dictionary)!=0) 30 { 31 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 32 exit(1); 33 } 24 34 } 25 35 -
app/src/kor/common_cor.cc
rb3179eb r40358d2 16 16 { 17 17 expand_path(args->dictionary_arg,dictionary); 18 if(file_accessible(dictionary)!=0) 19 { 20 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 21 exit(1); 22 } 18 23 } 19 24 else if (args->dictionary_home_given && args->language_given) … … 22 27 expand_path(args->dictionary_home_arg, buf); 23 28 sprintf(dictionary,"%s/%s/cor.bin",buf,args->language_arg); 29 if(file_accessible(dictionary)!=0) 30 { 31 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 32 exit(1); 33 } 24 34 } 25 35 -
app/src/lem/common_lem.cc
r25ae32e r40358d2 11 11 { 12 12 expand_path(args->dictionary_arg,dictionary); 13 if(file_accessible(dictionary)!=0) 14 { 15 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 16 exit(1); 17 } 13 18 } 14 19 else if (args->dictionary_home_given && args->language_given) … … 17 22 expand_path(args->dictionary_home_arg, buf); 18 23 sprintf(dictionary,"%s/%s/lem.bin",buf,args->language_arg); 24 if(file_accessible(dictionary)!=0) 25 { 26 fprintf(stderr,"Cannot open the dictionary file: %s\nAborting.\n",dictionary); 27 exit(1); 28 } 19 29 } 20 30 }
Note: See TracChangeset
for help on using the changeset viewer.