From 3d4738a09d55010fa0d58f606f397ee09883b4c2 Mon Sep 17 00:00:00 2001 From: b0ric Date: Sun, 16 Aug 2009 01:17:55 +0300 Subject: Fully working version but i18n, automake and autoconf support is needed --- main.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.h') diff --git a/main.h b/main.h index 2e05621..b2f8308 100644 --- a/main.h +++ b/main.h @@ -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*/ -- cgit v1.2.3