Commit Graph

183 Commits

Author SHA1 Message Date
Vincent Sanders 2f864eeecc Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
Vincent Sanders c032d88ba7 a script which will determine who was the last person to change a line which has a warning upon it (and a which revision)
svn path=/trunk/netsurf/; revision=3484
2007-08-08 14:20:57 +00:00
John Mark Bell 7ec7ba37db Fix debug build
svn path=/trunk/netsurf/; revision=3477
2007-08-06 22:17:42 +00:00
John Mark Bell 3d11398006 Purge NCOS build options; these have been redundant for ages.
svn path=/trunk/netsurf/; revision=3454
2007-07-21 22:17:07 +00:00
Rob Kendrick 04292695be Initial work on RSVG image handler. Still a lot to do.
svn path=/trunk/netsurf/; revision=3433
2007-07-18 17:58:35 +00:00
Rob Kendrick 59f358eb0f Wrap internal SVG renderer with appropriate #ifdef WITH_NS_SVG
svn path=/trunk/netsurf/; revision=3432
2007-07-18 14:49:26 +00:00
Rob Kendrick 36ecbc6be2 Add HAVE_STRNDUP and supporting structure to config.h and make utils.[ch] reflect it.
svn path=/trunk/netsurf/; revision=3351
2007-06-16 23:30:47 +00:00
Rob Kendrick 43257a160b Changes to allow building on Solaris.
* 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
2007-06-15 22:07:11 +00:00
Rob Kendrick 89a44d8bc3 FreeBSD portability fixes.
* Remove usage of d_ino from utils/filename.c (it was checking
	  for the inode being 0, and I cannot spot anywhere in UnixLib
	  where it would explicitly do this anyway)
	* Add -D_XOPEN_SOURCE=600 to gcc command line, and replace old
	  -D_POSIX_C_SOURCE to include =200112L (as that's the standard
	  we use).

svn path=/trunk/netsurf/; revision=3347
2007-06-15 18:43:07 +00:00
Daniel Silverstone 9ef3a2cd57 Reflow useragent.c to be 8 char indent. Also rename build_user_agent to user_agent_build_string so that all useragent.c starts user_agent_*
svn path=/trunk/netsurf/; revision=3334
2007-06-10 18:13:59 +00:00
John Mark Bell 87ca206e13 Warning fixes.
svn path=/trunk/netsurf/; revision=3332
2007-06-10 18:08:22 +00:00
Daniel Silverstone 1dd7e97eb3 Merge scheme switcher branch in.
svn path=/trunk/netsurf/; revision=3330
2007-06-10 17:46:44 +00:00
Rob Kendrick 47f9ee3581 Check return value of stat() in filename.c and report oddness using LOG
svn path=/trunk/netsurf/; revision=3318
2007-06-10 11:28:44 +00:00
Rob Kendrick 818a744178 Stop filename.c using d_type member in dirent struct, as this is completely and utterly unportable. Not even Linux has it anymore.
svn path=/trunk/netsurf/; revision=3317
2007-06-10 11:11:46 +00:00
Daniel Silverstone 6807b4208a Remove the netsurf/ from the include paths and rationalise use of <> vs "" 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
2007-05-30 22:39:54 +00:00
Daniel Silverstone 25e22eb1f5 Add a -v option to enable debug logging. Pass -v by default to the RO runimage.
svn path=/trunk/netsurf/; revision=3306
2007-05-30 22:27:58 +00:00
James Bursa 0547422534 Move user-agent generation into fetch.c and simplify.
svn path=/trunk/netsurf/; revision=3260
2007-05-02 02:38:38 +00:00
James Bursa 6e6d397e9d Remove defines that were never or are no longer used.
svn path=/trunk/netsurf/; revision=3259
2007-04-30 03:18:17 +00:00
John Mark Bell d1b79f3e41 Bring percent-encoding closer to what other browsers do.
svn path=/trunk/netsurf/; revision=3179
2007-02-11 22:28:00 +00:00
Rob Kendrick bdf7affb19 Fix almost all warnings in gtk/
svn path=/trunk/netsurf/; revision=3173
2007-02-10 02:21:32 +00:00
Rob Kendrick 5426a708a9 Generates and use a User-Agent: string based on new netsurf_version_major/minor values, and results of uname().
svn path=/trunk/netsurf/; revision=3158
2007-01-30 19:51:54 +00:00
Rob Kendrick 7c88381a59 Make time taken that is displayed in status bar use gettimeofday()-based time rather than clock()-based time
svn path=/trunk/netsurf/; revision=3157
2007-01-30 15:32:31 +00:00
James Bursa a0b6661eb6 Make GTK build compile on FreeBSD.
svn path=/trunk/netsurf/; revision=3154
2007-01-29 22:27:15 +00:00
Richard Wilson ef65cb38bd Fix 1535120, 1528673
svn path=/trunk/netsurf/; revision=3087
2006-12-01 21:09:49 +00:00
Michael Drake ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Rob Kendrick 9a2cdc2db8 Skeleton implementation of new themes API, complete with documentation, for discussion purposes.
svn path=/trunk/netsurf/; revision=3021
2006-10-31 16:19:21 +00:00
Rob Kendrick bbfda21e1c Add verbose flag to theme creation tool - silent unless used.
svn path=/trunk/netsurf/; revision=3019
2006-10-27 14:56:32 +00:00
Rob Kendrick 88fec4362c Make containers use mmap() where available
svn path=/trunk/netsurf/; revision=3018
2006-10-26 23:53:16 +00:00
Rob Kendrick 87a660d1ea Import initial work on theme container handling code and simple command-line tool to create and dismantal them. Still a little grungy, and doesn't check in enough places for memory exhaustion.
svn path=/trunk/netsurf/; revision=3017
2006-10-26 01:10:46 +00:00
Rob Kendrick 8c05d8274d Make hashtable's fnv hash inline - saves 8 instructions and two pipeline flushes per call
svn path=/trunk/netsurf/; revision=3014
2006-10-20 16:56:40 +00:00
Richard Wilson 8be8304bc6 Plug possible memory leak. Reduce memory usage. Add facility to iterate through a hashtable.
svn path=/trunk/netsurf/; revision=3013
2006-10-20 12:13:28 +00:00
Rob Kendrick 7711781f24 Further hash table optimisations and tidies. Test rig now does more lookups to favour the more comment case for speed tests, etc.
svn path=/trunk/netsurf/; revision=3003
2006-10-13 15:50:11 +00:00
Richard Wilson a8a944bd52 Optimise and tidy up code.
svn path=/trunk/netsurf/; revision=3002
2006-10-13 15:09:30 +00:00
John Mark Bell cda3154a92 Fix bad pointer increment
svn path=/trunk/netsurf/; revision=2999
2006-10-12 14:01:14 +00:00
John Mark Bell 2caa96dcc9 Fix attempts to call die() before messages_hash exists:
1) Make hash_* more robust in the face of bad parameters
2) Make messages_* more robust in the face of bad parameters
3) Tidy up gui_init such that localised messages are loaded at the 
   earliest opportunity

svn path=/trunk/netsurf/; revision=2998
2006-10-12 14:00:40 +00:00
John Mark Bell 4b09b7b8a0 Correcly encode spaces for url-encoded form submission.
svn path=/trunk/netsurf/; revision=2960
2006-09-19 10:08:33 +00:00
Richard Wilson 1999becb42 Finish event based GUI system transition and begin code cleanup.
svn path=/trunk/netsurf/; revision=2922
2006-09-06 14:44:42 +00:00
Richard Wilson b0851c9dde Expose url component functions.
svn path=/trunk/netsurf/; revision=2907
2006-09-02 16:42:37 +00:00
Richard Wilson 74fa727509 Experimental new frames code.
svn path=/trunk/netsurf/; revision=2906
2006-09-02 15:52:41 +00:00
Rob Kendrick 8d7172fd17 Make Messages file parsing and searching use new re-usable hash table library
svn path=/trunk/netsurf/; revision=2879
2006-08-21 22:07:10 +00:00
Rob Kendrick 9670b32b7f Add documentation comments to hash table implementation.
svn path=/trunk/netsurf/; revision=2877
2006-08-21 16:51:39 +00:00
James Bursa efb9fd036b Check for malloc failing in hash_add(). Remove unnecessary casts.
svn path=/trunk/netsurf/; revision=2873
2006-08-20 16:02:22 +00:00
Rob Kendrick 1f9fed8556 Make hash_add() return success/failure bool
svn path=/trunk/netsurf/; revision=2872
2006-08-20 13:46:30 +00:00
Rob Kendrick d6b1f763ff Implement simple reusable write-once hash table for use in new Messages file handling.
svn path=/trunk/netsurf/; revision=2871
2006-08-20 12:25:41 +00:00
Rob Kendrick 537bc37805 Slightly improve hash table for Messages file. Paves way for more generic use of it, as well as more constant performance.
svn path=/trunk/netsurf/; revision=2870
2006-08-19 23:37:58 +00:00
Richard Wilson 6c4003bf90 Remove URL caching and fix NULL reads.
svn path=/trunk/netsurf/; revision=2855
2006-08-17 14:48:28 +00:00
Richard Wilson de0c4e2c32 Implement up toolbar icon and menu option.
svn path=/trunk/netsurf/; revision=2705
2006-07-03 21:07:02 +00:00
John Mark Bell b7af14b591 Implement component-wise URL comparison
svn path=/trunk/netsurf/; revision=2697
2006-07-02 22:34:04 +00:00
John Mark Bell 2cb285209e Use case-insensitive strstr to match "stylesheet"
svn path=/trunk/netsurf/; revision=2689
2006-07-02 10:26:51 +00:00
John Mark Bell f73bae5c29 Make url_plq ensure url_get_components found a path
Make url_scheme call url_destroy_components in case where no scheme was 
found.

svn path=/trunk/netsurf/; revision=2686
2006-07-01 22:40:41 +00:00