summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
Commit message (Collapse)AuthorAgeFilesLines
* Sniff content types where appropriate.John Mark Bell2011-09-041-0/+7
| | | | | | We never sniff for CSS, nor for non-page artefacts (e.g. treeview icons) svn path=/trunk/netsurf/; revision=12707
* Clean up after content factoryJohn Mark Bell2011-05-161-0/+3
| | | | svn path=/trunk/netsurf/; revision=12415
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-3/+26
| | | | svn path=/trunk/netsurf/; revision=12283
* move logging initialisationVincent Sanders2011-04-021-13/+6
| | | | svn path=/trunk/netsurf/; revision=12152
* commandline option settingVincent Sanders2011-03-181-1/+4
| | | | svn path=/trunk/netsurf/; revision=12106
* Ensure we stop the hlcache schedule before we quit the guiDaniel Silverstone2011-03-131-0/+2
| | | | svn path=/trunk/netsurf/; revision=12036
* Shunt the schedule function definitions to desktop/schedule.h. Shunt the ↵Daniel Silverstone2011-03-131-2/+3
| | | | | | hlcache/llcache to using schedule to get their cleanups run. svn path=/trunk/netsurf/; revision=12029
* Lose nasty codeJohn Mark Bell2011-03-121-5/+0
| | | | svn path=/trunk/netsurf/; revision=11984
* Clean up blank_import on exitJohn Mark Bell2011-02-261-0/+4
| | | | svn path=/trunk/netsurf/; revision=11818
* add default system colour handlers to each frontendVincent Sanders2011-01-301-0/+14
| | | | svn path=/trunk/netsurf/; revision=11530
* Ensure we correctly release all icon resources associated with trees, SSL ↵Daniel Silverstone2011-01-201-0/+3
| | | | | | certs, search providers, etc. svn path=/trunk/netsurf/; revision=11421
* Whee. Another runtime that doesn't support stdout = stderr.John Mark Bell2010-12-291-1/+1
| | | | | | We really should stop doing this. svn path=/trunk/netsurf/; revision=11148
* Fix bug #3138151: shut down caches before killing off fetch layerJohn Mark Bell2010-12-161-4/+4
| | | | svn path=/trunk/netsurf/; revision=11069
* Remove Hubbub and Wapcaplet initialisation and finalisation.Michael Drake2010-12-041-12/+0
| | | | svn path=/trunk/netsurf/; revision=10980
* Clean up how GTK frontend finds resourcesVincent Sanders2010-07-281-4/+1
| | | | svn path=/trunk/netsurf/; revision=10668
* It turns out that realloc(ptr, 0) --> free(ptr) is not actually required by ↵John Mark Bell2010-04-301-0/+5
| | | | | | | | the C standard (whereas realloc(NULL, size) --> malloc(size) is). Therefore, explicitly model the behaviour expected by our libraries (that realloc of 0 size is equivalent to free). svn path=/trunk/netsurf/; revision=10524
* Log any remaining interned strings (there should be none)John Mark Bell2010-04-271-0/+7
| | | | svn path=/trunk/netsurf/; revision=10502
* Clean up caches on exitJohn Mark Bell2010-04-271-0/+4
| | | | svn path=/trunk/netsurf/; revision=10494
* Handle llcache queries (GTK only for now)John Mark Bell2010-04-141-2/+31
| | | | svn path=/trunk/netsurf/; revision=10403
* Take the easy way out wrt loading messages files: leave it to the RISC OS ↵John Mark Bell2010-04-111-2/+4
| | | | | | frontend to do this. svn path=/trunk/netsurf/; revision=10374
* Implement hlcache_poll(), which drives the low-level cache event loop, and ↵John Mark Bell2010-04-111-2/+2
| | | | | | | | attempts to clean the high-level cache. Call this, instead of llcache_poll(). svn path=/trunk/netsurf/; revision=10371
* Revert previous changeChris Young2010-03-301-2/+1
| | | | svn path=/trunk/netsurf/; revision=10215
* Avoid crash if pargc is NULL. This might happen, for example, when ↵Chris Young2010-03-301-1/+2
| | | | | | | | launching NetSurf from Workbench under AmigaOS :) svn path=/trunk/netsurf/; revision=10214
* second pass at startup refactor removing the gui_init callbackVincent Sanders2010-03-291-6/+25
| | | | svn path=/trunk/netsurf/; revision=10205
* first part of initialisation refactor move gui_init2 into frontendsVincent Sanders2010-03-291-1/+0
| | | | svn path=/trunk/netsurf/; revision=10202
* Replace fetch_poll with llcache_poll throughout. Allow CONTENT_OTHER to ↵Daniel Silverstone2010-03-281-1/+0
| | | | | | complete properly. svn path=/trunk/netsurf/; revision=10187
* Remove fetchcache.[ch]Daniel Silverstone2010-03-281-1/+0
| | | | svn path=/trunk/netsurf/; revision=10183
* Merge jmb/new-cache; r=dsilvers,rs=vinceDaniel Silverstone2010-03-281-64/+17
| | | | svn path=/trunk/netsurf/; revision=10180
* Add Windows frontendVincent Sanders2010-01-311-9/+17
| | | | svn path=/trunk/netsurf/; revision=9940
* Refactor main into the frontendsVincent Sanders2010-01-201-13/+0
| | | | | | remove unused embedded global svn path=/trunk/netsurf/; revision=9851
* OpenBSD 4.4 compilation fixes. Does not deal with lack of -Wextra or ↵Rob Kendrick2009-03-021-1/+2
| | | | | | -Wstrict-aliasing for lpu or hubbub. svn path=/trunk/netsurf/; revision=6673
* Had to split main() into parts to have netsurf_init() called from one ↵François Revel2008-10-161-5/+15
| | | | | | thread, and the loop in another to avoid a deadlock in replicants... hope nobody minds. svn path=/trunk/netsurf/; revision=5586
* Have netsurf_main() do the real work and main() call it. This allows ports ↵François Revel2008-10-161-1/+13
| | | | | | | | to call it from elsewhere to embed NetSurf in another application. The netsurf_embedded bool remembers it for later (like, we shouldn't probably save the hotlist and preferences in that case). svn path=/trunk/netsurf/; revision=5579
* r4153 was mostly right. It does help, however, if you actually force the ↵John Mark Bell2008-10-131-0/+2
| | | | | | locale to "C" in the first place. The issues listed in the commit log for r4153 still apply. This should fix the core's parsing of floats in locales that use something other than '.' as the decimal separator. svn path=/trunk/netsurf/; revision=5568
* Performance improvements: rather than calling content_clean() every poll, we ↵Rob Kendrick2008-07-071-1/+10
| | | | | | now call it no more frequently than once every 5 seconds. Additionally, we cache the result of talloc_total_size() in content_clean() rather than calculating it twice. On large documents, this function took 25% of CPU time. This makes the fetching/rendering/scrolling/redrawing of large documents over twice as fast. svn path=/trunk/netsurf/; revision=4527
* The core code has always assumed a locale of "C".John Mark Bell2008-05-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not change the locale globally, else things will break in weird and wonderful ways. Introduce utils/locale.[ch], which provide locale-specific wrappers for various functions (currently just the <ctype.h> ones). Fix up the few places I can see that actually require that the underlying locale is paid attention to. Some notes: 1) The GTK frontend code has not been touched. It is possible that reading of numeric values (e.g. from the preferences dialogue) may break with this change, particularly in locales that use something other than '.' as their decimal separator. 2) The search code is left unchanged (i.e. assuming a locale of "C"). This may break case insensitive matching of non-ASCII characters. I doubt that ever actually worked, anyway. In future, it should use Unicode case conversion to achieve the same effect. 3) The text input handling in the core makes use of isspace() to detect word boundaries. This is fine for western languages (even in the C locale, which it's currently assuming). It will, however, break for CJK et. al. (this has always been the case, rather than being a new issue) 4) text-transform uses locale-specific variants of to{lower,upper}. In future this should probably be performing Unicode case conversion. This is the only part of the core code that makes use of locale information. In future, if you require locale-specific behaviour, do the following: setlocale(LC_<whatever>, ""); <your operation(s) here> setlocale(LC_<whatever>, "C"); The first setlocale will change the current locale to the native environment. The second setlocale will reset the current locale to "C". Any value other than "" or "C" is probably a bug, unless there's a really good reason for it. In the long term, it is expected that all locale-dependent code will reside in platform frontends -- the core being wholly locale agnostic (though assuming "C" for things like decimal separators). svn path=/trunk/netsurf/; revision=4153
* Remove unnecessary includesJohn Mark Bell2008-05-111-3/+0
| | | | svn path=/trunk/netsurf/; revision=4144
* Fixes for targetting NetBSD (Thanks to Adam Hoka)John Mark Bell2008-01-261-1/+1
| | | | svn path=/trunk/netsurf/; revision=3775
* Ignore SIGPIPE on all platforms, not just RISC OS.John Mark Bell2007-10-311-0/+9
| | | | svn path=/trunk/netsurf/; revision=3638
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-5/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Changes to allow building on Solaris.Rob Kendrick2007-06-151-1/+3
| | | | | | | | | * 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
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-12/+12
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Add a -v option to enable debug logging. Pass -v by default to the RO runimage.Daniel Silverstone2007-05-301-0/+10
| | | | svn path=/trunk/netsurf/; revision=3306
* Log libxml2 version in lib_init().James Bursa2007-05-061-3/+10
| | | | svn path=/trunk/netsurf/; revision=3268
* Revert r3156 (content cleaner frequency reduction) as it introduces John Mark Bell2007-01-311-15/+1
| | | | | | potential stability issues. svn path=/trunk/netsurf/; revision=3160
* Attempt to perform content cleaning far less frequently.John Mark Bell2007-01-301-1/+15
| | | | svn path=/trunk/netsurf/; revision=3156
* Add URLdb destruction functionalityJohn Mark Bell2006-12-081-0/+3
| | | | svn path=/trunk/netsurf/; revision=3115
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Experimental new frames code.Richard Wilson2006-09-021-0/+5
| | | | svn path=/trunk/netsurf/; revision=2906
* Rewrite cookie parser to be more tolerant of junk inputJohn Mark Bell2006-06-241-2/+0
| | | | | | No longer need urldb_init; remove it. svn path=/trunk/netsurf/; revision=2643