diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-10 08:29:47 +0000 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2005-07-10 08:29:47 +0000 |
commit | 6b44784148735f594ac862abcd38c50c5d556df0 (patch) | |
tree | bd654c8aa0f80932b3c9b2ee25b23c7e67d6a919 /src | |
parent | fdfe5b42f687fbf3d4537541cc1b0bd9b8c2c090 (diff) | |
download | librcc-6b44784148735f594ac862abcd38c50c5d556df0.tar.gz librcc-6b44784148735f594ac862abcd38c50c5d556df0.tar.bz2 librcc-6b44784148735f594ac862abcd38c50c5d556df0.tar.xz librcc-6b44784148735f594ac862abcd38c50c5d556df0.zip |
Options
Diffstat (limited to 'src')
-rw-r--r-- | src/opt.h | 3 | ||||
-rw-r--r-- | src/rccconfig.c | 17 |
2 files changed, 12 insertions, 8 deletions
@@ -11,7 +11,8 @@ enum rcc_option_type_t { RCC_OPTION_TYPE_BOOLEAN = 0, RCC_OPTION_TYPE_RANGE, RCC_OPTION_TYPE_FLAGS, - RCC_OPTION_TYPE_MENU + RCC_OPTION_TYPE_MENU, + RCC_OPTION_TYPE_MAX }; typedef enum rcc_option_type_t rcc_option_type; diff --git a/src/rccconfig.c b/src/rccconfig.c index d40941f..10ddf3f 100644 --- a/src/rccconfig.c +++ b/src/rccconfig.c @@ -117,16 +117,19 @@ rcc_language_name rcc_default_language_names[RCC_MAX_LANGUAGES+1] = { }; rcc_option_description rcc_default_option_descriptions[] = { - {RCC_LEARNING_MODE, "LEARNING_MODE", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, + {RCC_LEARNING_MODE, "LEARNING_MODE", RCC_OPTION_TYPE_MENU, 0, 3}, + {RCC_AUTODETECT_FS_NAMES, "AUTODETECT_FS_NAMES", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, {RCC_AUTODETECT_FS_TITLES, "AUTODETECT_FS_TITLES", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, - {RCC_AUTODETECT_FS_NAMES, "AUTODETECT_FS_NAMES", RCC_OPTION_TYPE_NAMES; - {RCC_AUTODETECT_FS_TITLES, "AUTODETECT_FS_TITLES", RCC_OPTION_TYPE_NAMES; - RCC_CONFIGURED_LANGUAGES_ONLY + {RCC_CONFIGURED_LANGUAGES_ONLY, "CONFIGURED_LANGUAGES_ONLY", RCC_OPTION_MENU, 0, 2}, + {RCC_MAX_OPTIONS, NULL} +}; + rcc_option_name rcc_default_option_names[] = { - { RCC_LEARNING_MODE, "Learning Mode", "LEARNING_MODE" }, - { RCC_AUTODETECT_FS_TITLES, "Autodetect FS Encoding", "AUTODETECT_FS_TITLES" }, - { RCC_AUTODETECT_FS_NAMES, "Autodetect File Names", "AUTODETECT_FS_NAMES" }, + { RCC_LEARNING_MODE, "Learning Mode", }, + { RCC_AUTODETECT_FS_NAMES, "Autodetect File Names", NULL}, + { RCC_AUTODETECT_FS_TITLES, NULL, NULL}, + { RCC_CONFIGURED_LANGUAGES_ONLY, NULL, NULL}, { RCC_MAX_OPTIONS, NULL, NULL} }; |