Last change
on this file since f600a02 was
e0cd003,
checked in by Tomasz Obrebski <to@…>, 12 years ago
|
wsp�lny parametr -e usuni�ty
wyg�adzone teksty help
|
-
Property mode set to
100644
|
File size:
735 bytes
|
Rev | Line | |
---|
[5f4d9c3] | 1 | #include <stdlib.h> |
---|
| 2 | #include <string.h> |
---|
| 3 | #include "common_lem.h" |
---|
| 4 | |
---|
| 5 | char dictionary[255]; |
---|
| 6 | |
---|
| 7 | void process_lem_options(gengetopt_args_info* args) |
---|
| 8 | { |
---|
| 9 | |
---|
| 10 | if(args->dictionary_given) |
---|
| 11 | { |
---|
| 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 | } |
---|
| 18 | } |
---|
| 19 | else if (args->dictionary_home_given && args->language_given) |
---|
| 20 | { |
---|
| 21 | char buf[255]; |
---|
| 22 | expand_path(args->dictionary_home_arg, buf); |
---|
| 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 | } |
---|
| 29 | } |
---|
| 30 | } |
---|
| 31 | |
---|
Note: See
TracBrowser
for help on using the repository browser.