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/lem/common_lem.cc

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