summaryrefslogtreecommitdiff
path: root/utils/hashtable.c
Commit message (Collapse)AuthorAgeFilesLines
* move the fallback text for about handler into messages handlerVincent Sanders13 days1-2/+4
|
* allow hash table add inline to be uncompressedVincent Sanders2018-04-221-119/+175
|
* add hash table population from file or memoryVincent Sanders2018-04-221-2/+169
|
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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);
* Complete hash table tests and clean up ineterface.Vincent Sanders2015-07-121-170/+15
|
* Change LOG() macro to be varadicVincent Sanders2015-05-281-4/+4
| | | | | | | | | | | | 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 over-allocation of space for hash table chain heads.Michael Drake2013-02-221-1/+1
|
* trivial docuemntation cleanups to address some of the huge number of ↵Vincent Sanders2012-10-081-3/+3
| | | | docuemntation warnings
* Ensure we actually use the FNV offset basis rather than the prime, for ↵Daniel Silverstone2008-09-081-1/+1
| | | | | | initialising the hash svn path=/trunk/netsurf/; revision=5286
* - Compiler warning squashJohn Tytgat2008-07-261-28/+28
| | | | | | | - Changed a lineending \n\r -> \n for a couple of files. - More code style conformance. svn path=/trunk/netsurf/; revision=4762
* 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-2/+2
| | | | | | | | | | | | | | 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-2/+2
| | | | svn path=/trunk/netsurf/; revision=3073
* Plug possible memory leak. Reduce memory usage. Add facility to iterate ↵Richard Wilson2006-10-201-42/+65
| | | | | | through a hashtable. svn path=/trunk/netsurf/; revision=3013
* Further hash table optimisations and tidies. Test rig now does more lookups ↵Rob Kendrick2006-10-131-13/+18
| | | | | | to favour the more comment case for speed tests, etc. svn path=/trunk/netsurf/; revision=3003
* Optimise and tidy up code.Richard Wilson2006-10-131-10/+24
| | | | svn path=/trunk/netsurf/; revision=3002
* Fix attempts to call die() before messages_hash exists:John Mark Bell2006-10-121-11/+30
| | | | | | | | | 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
* Add documentation comments to hash table implementation.Rob Kendrick2006-08-211-0/+58
| | | | svn path=/trunk/netsurf/; revision=2877
* Check for malloc failing in hash_add(). Remove unnecessary casts.James Bursa2006-08-201-8/+10
| | | | svn path=/trunk/netsurf/; revision=2873
* Make hash_add() return success/failure boolRob Kendrick2006-08-201-1/+17
| | | | svn path=/trunk/netsurf/; revision=2872
* Implement simple reusable write-once hash table for use in new Messages file ↵Rob Kendrick2006-08-201-0/+186
handling. svn path=/trunk/netsurf/; revision=2871