Changeset 40358d2 for app/src/cor


Ignore:
Timestamp:
05/08/08 16:38:00 (17 years ago)
Author:
obrebski <obrebski@…>
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)
Message:

lem, gue, kor, cor sprawdzaja czy slownik istnieje i da sie otworzyc

git-svn-id: svn://atos.wmid.amu.edu.pl/utt@47 e293616e-ec6a-49c2-aa92-f4a8b91c5d16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/src/cor/common_cor.cc

    r25ae32e r40358d2  
    1010    { 
    1111      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        } 
    1217    } 
    1318  else if (args->dictionary_home_given && args->language_given) 
     
    1621      expand_path(args->dictionary_home_arg, buf); 
    1722      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        } 
    1828    } 
    1929} 
Note: See TracChangeset for help on using the changeset viewer.