summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix "error setting certificate verify locations" problem when the Choices ↵Michael Drake2012-10-171-0/+1
| | | | file doesn't exist. Now there's a single place for front ends to set options overrides. Fix nsoption_setnull_charp leak.
* Fix up ripples from urldb change.Michael Drake2012-10-111-3/+2
|
* Show refcnt in lwc iterator at netsurf exit.Daniel Silverstone2012-07-221-1/+1
|
* Interned string cleanup, phase 2: Create utils/corestrings and use it in css ↵Michael Drake2012-07-221-0/+7
| | | | handler.
* Move js_finalise(). Fix provided by Ole Loots (mono)Daniel Silverstone2012-06-291-2/+3
| | | | svn path=/trunk/netsurf/; revision=14014
* improve javascript supportVincent Sanders2012-06-101-1/+3
| | | | svn path=/trunk/netsurf/; revision=13962
* remove unecessary includesVincent Sanders2012-03-231-4/+0
| | | | svn path=/trunk/netsurf/; revision=13556
* NetSurf options rework (a=vince r=daniels,jmb)Vincent Sanders2012-03-221-3/+3
| | | | svn path=/trunk/netsurf/; revision=13548
* Totaly prefunctry binding to spidermonkeyVincent Sanders2012-01-011-0/+5
| | | | svn path=/trunk/netsurf/; revision=13360
* Port llcache to nsurl.Michael Drake2011-09-281-2/+3
| | | | svn path=/trunk/netsurf/; revision=12904
* Virtualise content handler finalisation calls. Remove pointless implementations.John Mark Bell2011-09-151-7/+2
| | | | svn path=/trunk/netsurf/; revision=12797
* Make high level cache, low level cache and image cache all be initialised ↵Vincent Sanders2011-09-101-7/+22
| | | | | | | | | from passed parameters Calculate all cache sizes from single memory cache size option and sanity check have a single global struct to hold all parameters instead of several individual variables svn path=/trunk/netsurf/; revision=12784
* make high level cache take a parameter structureVincent Sanders2011-09-081-1/+7
| | | | | | make hlcache have a single global container svn path=/trunk/netsurf/; revision=12779
* move bitmap cache initialisation up a levelVincent Sanders2011-09-071-0/+33
| | | | | | improve stats reporting svn path=/trunk/netsurf/; revision=12770
* 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