summaryrefslogtreecommitdiff
path: root/utils/messages.c
Commit message (Collapse)AuthorAgeFilesLines
* Resolve resource leak on error (coverity issue 1390560)Vincent Sanders2018-05-181-7/+7
|
* add hash table population from file or memoryVincent Sanders2018-04-221-147/+11
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* Messages: Correct code comment.Michael Drake2017-08-301-1/+1
|
* Errorcodes: Add SPRITE_ERROR and use it in sprite content handler.Michael Drake2017-08-301-0/+4
|
* Messages: Return the unknown message if we get to the unhandled errorcode.Michael Drake2017-08-281-0/+1
| | | | We shouldn't get there though.
* Messages: Do message lookups for all errorcodes.Michael Drake2017-08-281-4/+55
|
* Errorcodes: Remove redundant MNG error.Michael Drake2017-08-281-4/+0
|
* Ensure memory used by Messages is freed on exitChris Young2016-12-111-0/+25
|
* message get API should not raise user errors itselfVincent Sanders2016-04-291-4/+1
|
* Split utils header into string functions and everything elseVincent Sanders2016-04-211-0/+1
| | | | | split out the string handling API from the rest of the utils header and fix up all the fallout.
* Allow translation messages to be compiled in as GTK resourcesVincent Sanders2015-06-211-8/+113
|
* This moves message loading out of netsurf_init into each frontendVincent Sanders2015-06-211-1/+7
| | | | | | | | | | The translated message loading is dependant on configuration of resource location in each frontend, additionally they should have the ability to deal with errors in this loading in a implementation specific manner. This also extends the message loading API to be capable of loading from an inline memory buffer instead of from a file.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-7/+5
| | | | | | | | | | | | 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.
* fix doc commentsVincent Sanders2014-10-251-20/+20
|
* Improve the message loading API to return error codes.Vincent Sanders2014-10-251-81/+68
| | | | | | | Returning an error instead of simply calling die allows more robust error handling. Secondly initialisation may continue even if the messages have not been loaded which is more friendly than simply dropping dead with no communication to the user.
* add message retrival of error codes ensuring there are messages for all codesVincent Sanders2012-11-261-0/+96
|
* fix incorrect type in message loadingVincent Sanders2012-03-141-1/+1
| | | | | | | | | | | | | | | zlib has changed typedef voidp gzFile; to typedef struct gzFile_s *gzFile; historically the gzFile *fp has efectively expanded to void**fp The compiler considerd void ** to be identical to void* as void cannot be dereferenced and compilation suceeded. With a concrete type it does not work. svn path=/trunk/netsurf/; revision=13517
* Merge treeview-redux to trunkJohn Mark Bell2010-10-051-0/+31
| | | | svn path=/trunk/netsurf/; revision=10865
* Clean up how GTK frontend finds resourcesVincent Sanders2010-07-281-2/+5
| | | | svn path=/trunk/netsurf/; revision=10668
* Add support for gzipped Messages filesRob Kendrick2008-07-261-5/+8
| | | | svn path=/trunk/netsurf/; revision=4739
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-3/+14
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-4/+4
| | | | | | | | | | | | | | 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
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Fix attempts to call die() before messages_hash exists:John Mark Bell2006-10-121-9/+24
| | | | | | | | | 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
* Make Messages file parsing and searching use new re-usable hash table libraryRob Kendrick2006-08-211-80/+58
| | | | svn path=/trunk/netsurf/; revision=2879
* Slightly improve hash table for Messages file. Paves way for more generic ↵Rob Kendrick2006-08-191-5/+14
| | | | | | use of it, as well as more constant performance. svn path=/trunk/netsurf/; revision=2870
* [project @ 2005-07-16 14:35:20 by jmb]John Mark Bell2005-07-161-18/+1
| | | | | | | | | | | | | | | | | | - Convert Messages files to UTF-8 encoding. - Replace local_encoding_name() with platform specific utf8_[to,from]_local_encoding() functions - this allows mapping of 8bit characters 0x80->0x9f (inclusive). - All text that is rendered by the RISC OS Wimp is now converted to the system local encoding prior to display. - Lose the horrendous hack that was messages_get_key() - Menu text is now translated to system local encoding on the fly (if necessary) rather than at menu creation time. This allows the system alphabet to change under us and our menus remain usable. - The Languages menu now lists all languages that are present in the LangNames file. In the case of selecting the UI language, those languages which are not available are shaded. svn path=/import/netsurf/; revision=1796
* [project @ 2004-07-27 20:44:46 by jmb]John Mark Bell2004-07-271-0/+17
| | | | | | | Language configuration menu Make adjust clicks on font size arrows style guide compliant svn path=/import/netsurf/; revision=1154
* [project @ 2004-05-12 10:23:07 by rjw]Richard Wilson2004-05-121-1/+1
| | | | | | | Interactive help keys made more descriptive. Message key length increased to 24. svn path=/import/netsurf/; revision=856
* [project @ 2004-05-08 18:13:27 by bursa]James Bursa2004-05-081-58/+76
| | | | | | Clean up and make more efficient. svn path=/import/netsurf/; revision=843
* [project @ 2003-08-16 18:39:10 by bursa]James Bursa2003-08-161-0/+134
New portable messages module. svn path=/import/netsurf/; revision=244