Changeset 40358d2 for app/src/gue


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/gue/common_guess.cc

    r25ae32e r40358d2  
    1616    { 
    1717      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        } 
    1823    } 
    1924  else if (args->dictionary_home_given && args->language_given) 
     
    2227      expand_path(args->dictionary_home_arg, buf); 
    2328      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        } 
    2434    } 
    2535 
Note: See TracChangeset for help on using the changeset viewer.