diff options
author | Gustav HÃ¥llberg <gustav@gmail.com> | 2009-01-16 23:46:35 (GMT) |
---|---|---|
committer | Gustav HÃ¥llberg <gustav@gmail.com> | 2009-01-16 23:46:35 (GMT) |
commit | cd6d75684108f9a214821bcbfd98beeae0832386 (patch) | |
tree | af4905abdf71a136dd25f073a5f428096313a060 /utils.c | |
parent | 7d85d4e9500b2d1d802b8c5b15307ee9c770c245 (diff) | |
download | powwow-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.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -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); |