diff options
author | b0ric <b0risov.alexandr@rambler.ru> | 2009-08-16 01:17:55 +0300 |
---|---|---|
committer | b0ric <b0risov.alexandr@rambler.ru> | 2009-08-16 01:17:55 +0300 |
commit | 3d4738a09d55010fa0d58f606f397ee09883b4c2 (patch) | |
tree | c061149db2c5de7b0151197d5a7377d498c5ad49 /main.h | |
parent | 9d2cc46e50218768b43d4f8b80647828bca74576 (diff) |
Fully working version
but i18n, automake and autoconf support is needed
Diffstat (limited to 'main.h')
-rw-r--r-- | main.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -23,6 +23,8 @@ #define PATH_LENGTH 50 #define PROGNAME "wordextract" #define OPT_FOLDER "/.wordextract" +#define CONF_FILE "/config" +#define OPTION_LENGTH 30 /* maximum subtitle line and phrase length * it's not allocated dinamically 'cause it costs a lot of resources and * it can't be more than mean human reading speed in a half of a minute @@ -31,7 +33,7 @@ #define MAXLINE 300 #define MAXPHRASE 100 -typedef enum {ENG} Language; +typedef enum {ENG = 0} Language; typedef struct { unsigned int columns; unsigned int col_width; @@ -44,4 +46,7 @@ extern SaveOpt save_user_words; extern char optpath[PATH_LENGTH]; extern char dictfile[PATH_LENGTH]; +void read_config(); +void write_config(); + #endif /*MAIN_H*/ |