aboutsummaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:46:35 (GMT)
committerGustav HÃ¥llberg <gustav@gmail.com>2009-01-16 23:46:35 (GMT)
commitcd6d75684108f9a214821bcbfd98beeae0832386 (patch)
treeaf4905abdf71a136dd25f073a5f428096313a060 /utils.c
parent7d85d4e9500b2d1d802b8c5b15307ee9c770c245 (diff)
downloadpowwow-cd6d75684108f9a214821bcbfd98beeae0832386.zip
powwow-cd6d75684108f9a214821bcbfd98beeae0832386.tar.gz
powwow-cd6d75684108f9a214821bcbfd98beeae0832386.tar.bz2
cleaned up #option code and added '#option list'
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/utils.c b/utils.c
index 76391a9..b904c1f 100644
--- a/utils.c
+++ b/utils.c
@@ -1053,7 +1053,6 @@ int save_settings __P0 (void)
keynode *kp;
varnode *vp;
ptr pp = (ptr)0;
- extern char *full_options_string;
int i, flag, failed = 1;
if (REAL_ERROR) {
@@ -1243,23 +1242,7 @@ int save_settings __P0 (void)
}
if (failed > 0)
- failed =
- fprintf(f, full_options_string,
- opt_exit ? '+' : '-',
- opt_history ? '+' : '-',
- opt_words ? '+' : '-',
- opt_compact ? '+' : '-',
- opt_debug ? '+' : '-',
- opt_echo ? '+' : '-',
- opt_info ? '+' : '-',
- opt_keyecho ? '+' : '-',
- opt_speedwalk ? '+' : '-',
- opt_wrap ? '+' : '-',
- opt_autoprint ? '+' : '-',
- opt_reprint ? '+' : '-',
- opt_sendsize ? '+' : '-',
- opt_autoclear ? '+' : '-',
- "\n");
+ failed = print_all_options(f);
fclose(f);