Commit Graph

25 Commits

Author SHA1 Message Date
Chris Young 3b57ce1013 Free shared_pens list on tree destroy 2016-02-14 15:42:58 +00:00
Chris Young 9e5bf6fb68 Don't free the deferred rects using FreeVec on exit as they're itempools 2016-01-23 12:11:33 +00:00
Chris Young 7e7ea09000 Allocate generic list objects using itempools
TODO: Allocate the attached structures also using itempools
2016-01-22 18:40:40 +00:00
Chris Young 46f181b348 More font-related tidy-up 2016-01-16 00:00:57 +00:00
Chris Young 844e599a22 Define m68k for OS3 build so dukky (nearly) compiles. 2015-08-14 19:13:19 +01:00
Chris Young f4903743ba Abstract all instances of NewMinList as it causes alert 80000006 on OS3 2015-08-05 23:42:20 +01:00
Chris Young ef5ce5c2f6 Fix guru 80000006 occuring on OS3 when initialising lists. 2015-08-05 18:13:04 +01:00
Chris Young 5c73c61aa2 Remove extra debug list padding 2015-02-03 19:49:09 +00:00
Chris Young a54170eeea Tidy up debug and increase list allocation to aid debugging 2015-01-31 11:30:37 +00:00
Chris Young 2eb41ed77b More OS3 fixes 2015-01-18 21:11:00 +00:00
Chris Young e24d3139c7 Fix warnings 2014-11-10 23:33:08 +00:00
Chris Young 20dabacb25 Correct some memory allocation parameters 2013-10-12 13:43:33 +01:00
Chris Young ade86e496e Replace AllocVec with AllocVecTags. Remove some instances of MEMF_CLEAR where it is not necessary. 2013-10-12 13:11:13 +01:00
John Mark Bell a54b88fc90 Add missing include
svn path=/trunk/netsurf/; revision=12702
2011-09-02 22:09:37 +00:00
Chris Young 1f1fe78c17 New style MIME typing; maps MIME types to DataTypes and DefIcon format names.
Currently only able to resolve DataTypes to MIME Types.

TODO:
- DT MIME type guessing needs mostly removing (only use if no matches in mimetypes
file)
- Migrate the rest of filetype.c to the new format (can filetype using icon.library
and reverse lookup MIME type, for example)
- Use to distinguish between CONTENT_IMAGE types
- Simplify so DefIcon type defaults to lowercase DataType name

svn path=/trunk/netsurf/; revision=12360
2011-05-09 22:11:18 +00:00
Chris Young 08dcfc0c44 Every five minutes, close any fonts not used in the last five minutes
svn path=/trunk/netsurf/; revision=12267
2011-05-01 11:59:08 +00:00
Chris Young 11a0284427 Don't open fonts until they are needed
svn path=/trunk/netsurf/; revision=12264
2011-04-30 19:05:11 +00:00
Chris Young 6bced73998 Modify scheduler to use a binary heap (using libpbl).
Scheduled events are now in event time order, so schedule_run simply takes the top
event off the heap and runs it (if we're polling, rather than having received a signal
that the next event is due to be run, we check first that we have passed the scheduled
time).

This should provide performance benefits as we are no longer trawling the entire list
of scheduled events (potentially hundreds) every time an event is signalled or the
schedule list is polled.

svn path=/trunk/netsurf/; revision=11703
2011-02-16 21:29:39 +00:00
John Mark Bell 6173bb0e6c Merge treeview-redux to trunk
svn path=/trunk/netsurf/; revision=10865
2010-10-05 19:14:46 +00:00
Chris Young bc4abe9087 Fix some potential issues with lists not being freed properly
svn path=/trunk/netsurf/; revision=9677
2009-11-15 23:11:41 +00:00
Chris Young cae0d4a43b Change memory allocations to MEMF_PRIVATE to enable paging on OS4.1.
svn path=/trunk/netsurf/; revision=5649
2008-11-02 00:21:49 +00:00
Chris Young dfec4035dd List traversing tidy-up.
svn path=/trunk/netsurf/; revision=5499
2008-10-06 18:20:16 +00:00
Chris Young 9fc58606db Scheduled events now signal when the scheduled time has passed.
The timer appears to stop signalling events occasionally - needs some investigation.

svn path=/trunk/netsurf/; revision=5287
2008-09-08 18:14:14 +00:00
Chris Young f071afe243 Code cleanup.
svn path=/trunk/netsurf/; revision=5167
2008-08-21 21:42:48 +00:00
Chris Young 05d0e28d50 Generic objects code implemented using Exec lists. Currently used by schedule.c to
add and delete schedule items from a list.

svn path=/trunk/netsurf/; revision=4876
2008-08-03 16:12:01 +00:00