summaryrefslogtreecommitdiff
path: root/utils/useragent.c
Commit message (Collapse)AuthorAgeFilesLines
* UA: align with compat specJohn-Mark Bell2022-05-271-5/+10
| | | | | | | See: https://compat.spec.whatwg.org/#ua-string-section Force desktop sites on Linux by claiming to be running under X11 (Linux is otherwise considered a mobile OS).
* useragent: Add a free_user_agent_string() functionDaniel Silverstone2019-09-071-0/+10
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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);
* Change LOG() macro to be varadicVincent Sanders2015-05-281-1/+1
| | | | | | | | | | | | 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.
* split version info into its own header and remove unnecessary nesurf.h includesVincent Sanders2014-10-131-1/+1
| | | | | | | | | The netsurf.h header should *only* contain the registration, core initialisation and finalisation methods. Version information is best placed in its own header. Also remove any unneeded inclusion of this header limiting it to solely the places the relevant API is required.
* Remove architecture from UA string.Michael Drake2013-01-141-7/+3
|
* Add Windows frontendVincent Sanders2010-01-311-1/+2
| | | | svn path=/trunk/netsurf/; revision=9940
* Restore accidentally removed lineRob Kendrick2008-07-291-0/+1
| | | | svn path=/trunk/netsurf/; revision=4804
* Make user agent string and default homepage configurable from Makefile.configRob Kendrick2008-07-291-1/+3
| | | | svn path=/trunk/netsurf/; revision=4803
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Changes to allow building on Solaris.Rob Kendrick2007-06-151-1/+1
| | | | | | | | | * Tested on Solaris Express: Developer Edition, which is between Solaris 10 and 11. * Used gcc, libmng etc packages using pkg-get and blastwave's resources. * Had to build lemon and re2c manually. svn path=/trunk/netsurf/; revision=3350
* Reflow useragent.c to be 8 char indent. Also rename build_user_agent to ↵Daniel Silverstone2007-06-101-27/+27
| | | | | | user_agent_build_string so that all useragent.c starts user_agent_* svn path=/trunk/netsurf/; revision=3334
* Warning fixes.John Mark Bell2007-06-101-9/+17
| | | | svn path=/trunk/netsurf/; revision=3332
* Merge scheme switcher branch in.Daniel Silverstone2007-06-101-0/+60
svn path=/trunk/netsurf/; revision=3330