path: root/utils/nsoption.c
Commit message (Collapse)AuthorAgeFilesLines
* Improve user choices file processingVincent Sanders2020-06-271-27/+88
| | | | | | | | Improve the key/value processing in choices file. Fixes several oddities discovered including: removing the last character of the last value. possible buffer overflow with certian values
* nsoption: Improve how we show colours in about:config.Michael Drake2020-04-071-4/+9
* nsoption: Use colour_rb_swap macro.Michael Drake2020-04-071-3/+1
* Sort out the logging so that -v etc do the right thingDaniel Silverstone2017-09-081-1/+6
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* move plot style header to netsurf include directoryVincent Sanders2017-01-131-1/+1
| | | | | move plotter style header and adjust all callers to use only what they actually require.
* windows frontend netsurf optionsVincent Sanders2016-10-191-0/+2
* Treeview: Add `treeview_font_size` to options.Michael Drake2016-08-111-0/+8
| | | | Default is 11pt, and RISC OS overrides to 12pt.
* remove erroneous parameter check to nsoption_snoptionfVincent Sanders2016-08-061-1/+1
| | | | | | The API check and bounds check for option indexes was from an unsigned enum so checking for negative numbers was causing "comparison is always false" errors in compilation.
* improve option test coverage futherVincent Sanders2016-08-061-3/+11
* Improve user option testing and API parameter checkingVincent Sanders2016-08-051-9/+38
* store toolbar config in standard options instead of a separate fileVincent Sanders2016-05-211-2/+6
* Ensure fetch attempts is not reduced to less than 1.Michael Drake2016-02-151-2/+3
* Fix constraints on curl_fetch_timeout option.Michael Drake2016-02-151-2/+2
| | | | 5 <= n <= 60 seconds.
* Revert "Skip invalid commandline args instead of aborting"Chris Young2015-11-271-4/+2
| | | | This reverts commit 4ad94124a693528f2ac47a9b4b2e12880586aedf.
* Skip invalid commandline args instead of abortingChris Young2015-11-241-2/+4
* Add support for retrying timed-out cURL fetches.Daniel Silverstone2015-11-101-0/+14
| | | | | | | | | | | | | This is an attempt to amelioriate the situation found in #2384 where we see the cURL connect() failing to complete. Based on the pcap from the bug log, we believe that RISC OS is likely failing to signal the completion of the connection to cURL. As such, cURL times out. This change permits retries of timed out connections in the hope that a fresh socket FD might subsequently function correctly. The defaults chosen mean that the previous behaviour of 30 seconds before timeout is reported will remain the same, but in that time we will make 3 separate attempts to connect the socket.
* Fix segmentation fault when a string option is set to NULLVincent Sanders2015-11-051-1/+4
| | | | | The check for a user option being a default value was not protecting against the value being set to NULL.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-4/+4
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* remove some warnings from freebsd buildVincent Sanders2014-12-211-0/+1
* doxygen cleanups in utilsVincent Sanders2014-11-121-1/+3
* Trivial sepelling, documentation and whitespace cleanupsVincent Sanders2014-10-101-1/+1
* add finalisation to options and document the API betterVincent Sanders2013-06-011-56/+176
* fix import of old broken ChoicesVincent Sanders2013-05-291-2/+30
* Ensure colour values around #888888 can be read in HTML output.Michael Drake2013-05-281-1/+2
* add provenance to about:configVincent Sanders2013-05-281-46/+99
* if the colour value is unusable do not assign garbage to teh optionVincent Sanders2013-05-281-4/+5
* copy the options data with memcpy insteadVincent Sanders2013-05-281-6/+2
* add new option API and implementationVincent Sanders2013-05-281-0/+697