diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-21 15:09:59 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-21 15:09:59 +0000 |
commit | b4723c1d05819d4e47fc59254f5ad8c9d6d62db3 (patch) | |
tree | 4242fc6b5d7c9f3649140f0e86b1b39b338e9459 /desktop/options.c | |
parent | 6e5d77e894d9b76d9bd9ed19b6d506dc8f26d454 (diff) | |
download | netsurf-b4723c1d05819d4e47fc59254f5ad8c9d6d62db3.tar.gz netsurf-b4723c1d05819d4e47fc59254f5ad8c9d6d62db3.tar.bz2 |
[project @ 2004-06-21 15:09:58 by bursa]
Merge memory cache into content module.
svn path=/import/netsurf/; revision=986
Diffstat (limited to 'desktop/options.c')
-rw-r--r-- | desktop/options.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/desktop/options.c b/desktop/options.c index 1748fc6b1..6b8975f5d 100644 --- a/desktop/options.c +++ b/desktop/options.c @@ -41,8 +41,10 @@ int option_font_size = 100; int option_font_min_size = 70; /** Accept-Language header. */ char *option_accept_language = 0; -/** Strict verification of SSL sertificates */ +/** Enable verification of SSL certificates. */ bool option_ssl_verify_certificates = true; +/** Preferred maximum size of memory cache / bytes. */ +int option_memory_cache_size = 2 * 1024 * 1024; EXTRA_OPTION_DEFINE @@ -59,6 +61,7 @@ struct { { "font_min_size", OPTION_INTEGER, &option_font_min_size }, { "accept_language", OPTION_STRING, &option_accept_language }, { "ssl_verify_certificates", OPTION_BOOL, &option_ssl_verify_certificates }, + { "memory_cache_size", OPTION_STRING, &option_memory_cache_size }, EXTRA_OPTION_TABLE }; @@ -133,6 +136,9 @@ void options_read(const char *path) option_font_min_size = 10; if (500 < option_font_min_size) option_font_min_size = 500; + + if (option_memory_cache_size < 0) + option_memory_cache_size = 0; } |