X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=options.c;h=e1a554391b2d2a56313c833de2077ccdf24c4b74;hb=ceba9214d8bebe32d0c34c7a82916bcb9d798d69;hp=103c180848df07b1861e0459f28245c018ebf326;hpb=3212da92838c056bcc1cafa57beaf26086e2ac96;p=pkg%2Fabook.git diff --git a/options.c b/options.c index 103c180..e1a5543 100644 --- a/options.c +++ b/options.c @@ -2,7 +2,7 @@ /* * $Id$ * - * by JH + * by JH * * Copyright (C) Jaakko Heinonen */ @@ -80,10 +80,18 @@ init_options() default_options(); } + +#if 1 +extern int alternative_rcfile; +#endif + void close_config() { - save_options(); +#if 1 + if(!alternative_rcfile) + save_options(); +#endif conff_free_nodes(abook_config); } @@ -114,6 +122,7 @@ load_options() } } +#if 1 void save_options() { @@ -122,6 +131,7 @@ save_options() conff_save_file(abook_config, rcfile); } +#endif static void options_add_key(char *key, char *value) @@ -152,4 +162,6 @@ default_options() options_add_key("www_command", "lynx"); options_add_key("address_style", "eu"); + + options_add_key("use_ascii_only", "false"); }