Commit Graph

21 Commits

Author SHA1 Message Date
Vincent Sanders c105738fa3 Change LOG() macro to be varadic
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.
2015-05-28 16:08:46 +01:00
Vincent Sanders 72f8e711d7 additional risc os header cleanups 2014-06-05 23:01:37 +01:00
Vincent Sanders 54fcb66d87 cleanup RISC OS frontend header usage 2014-06-05 15:14:49 +01:00
Vincent Sanders 886a3106db move utf8 local conversion operations to table 2014-02-01 22:17:36 +00:00
Vincent Sanders 654da2ffb5 move utf8 conversion routines to use nserror instead of their own error enum 2014-01-28 21:40:13 +00:00
John Mark Bell 023167651a Squash warnings in RISC OS build.
Replace use of strnlen with strlen and max.

svn path=/trunk/netsurf/; revision=10479
2010-04-24 21:25:08 +00:00
Vincent Sanders 03bb3e8636 remove _GNU_SOURCE define from everywhere.
strndup is not standard so provide an implementation.

svn path=/trunk/netsurf/; revision=10474
2010-04-24 15:22:17 +00:00
Adrian Lees d67a57c1e9 Assorted saving-related changes (WIP)
svn path=/trunk/netsurf/; revision=6010
2009-01-10 00:18:34 +00:00
John Tytgat c40fc354b3 - Teached ro_gui_set_icon_string() and ro_gui_get_icon_string() about the difference between direct and indirect icons.
- ro_gui_get_icon_string(): 
    - Constify return value of ro_gui_get_icon_string() as you really shouldn't change its contents via this pointer.
    - Enfore NUL string termination as return value (instead of other control char termination) 
- Merged ro_gui_set_icon_string_le() into ro_gui_set_icon_string() by adding ro_gui_set_icon_string() and extra to_utf8 parameter.
- ro_gui_strncmp(): added

svn path=/trunk/netsurf/; revision=4907
2008-08-05 01:23:04 +00:00
John Tytgat 5f6c2cbff7 - Compiler warning squash
- Changed a lineending \n\r -> \n for a couple of files.
- More code style conformance.

svn path=/trunk/netsurf/; revision=4762
2008-07-26 22:29:15 +00:00
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
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
Michael Drake ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
John Mark Bell a1f291383f Convert query button text to local encoding correctly
svn path=/trunk/netsurf/; revision=3025
2006-11-04 12:38:24 +00:00
John Mark Bell 79554528ba Squash warning
svn path=/trunk/netsurf/; revision=2931
2006-09-08 16:05:36 +00:00
Richard Wilson 26f2b49447 Fix icon sizing
svn path=/trunk/netsurf/; revision=2929
2006-09-08 13:31:43 +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
Adrian Lees 57c86c8c0e [project @ 2006-02-07 16:16:23 by adrianl]
Confirmation before overwriting with download files; Interface Choices dialog

svn path=/import/netsurf/; revision=2061
2006-02-07 16:16:23 +00:00
Richard Wilson d1094d1238 [project @ 2005-12-31 04:40:48 by rjw]
Use new wimp_event system.

svn path=/import/netsurf/; revision=1916
2005-12-31 04:40:49 +00:00
Adrian Lees e22f12e223 [project @ 2005-04-30 14:38:43 by adrianl]
Hide non-functional Help button

svn path=/import/netsurf/; revision=1705
2005-04-30 14:38:43 +00:00
Adrian Lees 3d067e2fd6 [project @ 2005-04-23 02:56:14 by adrianl]
Query windows

svn path=/import/netsurf/; revision=1678
2005-04-23 02:56:14 +00:00