diff options
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*/ |