summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* Add unit test for bloom filterVincent Sanders2015-07-101-57/+4
| | | | | | | Adds check based unit test for teh bloom filter implementation. This is based on Roberts original test code in utils/bloom.c and uses /usr/share/dict as a source of strings to check bloom creation, no false negatives and the false positive rate is below 15%.
* Add tests for all asserts in nsurl API and for access and access_leafVincent Sanders2015-07-091-0/+4
|
* Add asserts to ensure operations not passed bad pointersVincent Sanders2015-07-091-0/+4
|
* Improve component documentation.Michael Drake2015-07-091-3/+12
|
* Fix mention of nsurl_destroy.Michael Drake2015-07-091-6/+6
|
* Fix logging to stderr if verbose_log was set before nslog_init was calledVincent Sanders2015-07-051-2/+5
|
* Fix a signed comparison error in nsurl parsing.Vincent Sanders2015-07-041-1/+1
| | | | | | | | | | | | | | | | | | | In utils/nsurl.c the function nsurl__create_from_section() has a section dealing with non-redundant ports (starting line 973). lwc_intern_string() was being called with negative lengths and as it takes a size_t (unsigned) so is getting passed a very large length which causes a segfault. this is supposed to be protected by the flag setting on line 969 however the arithmetic is all *unsigned* so the condition never matches (gdb) p length - (colon - pegs->at + skip) $9 = 18446744073709551608 changing the check arithmetic to be a simple comparison against length prevents this issue and reduces the amount of computation required.
* Allow translation messages to be compiled in as GTK resourcesVincent Sanders2015-06-212-9/+116
|
* This moves message loading out of netsurf_init into each frontendVincent Sanders2015-06-212-4/+23
| | | | | | | | | | 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.
* Move the browser identification and machine info logging.Vincent Sanders2015-06-211-0/+20
| | | | | | | | Previously this information was logged when netsurf_init was called which might be many lines out output into the log. It is useful to have this information at the beginning of the log to make it easily found. In addition it makes netsurf_init less complex.
* use logfile as variable name as cocoa gives an error about the symbol type ↵Vincent Sanders2015-05-291-8/+8
| | | | of logf
* Improve logging interface to reduce overheadVincent Sanders2015-05-292-22/+20
| | | | | | | | | | | | | This reduces logging overhead by only calling the log output function once instead of three times. Additionally the nslog_gettime interface no longer needs to be exported and the static function is directly inlined further reducing function call overhead. Finally the appending of a newline uses fputc instead of a full printf call which is considerably more simple and further reduces overhead time.
* Allow verbose logging to be directed to a fileVincent Sanders2015-05-291-1/+34
|
* fixup all the remaining logging macro callsitesVincent Sanders2015-05-282-9/+9
| | | | | The semantic patch tool appears to have missed some difficult to reason about callsites which have now been manually cleaned up
* Change LOG() macro to be varadicVincent Sanders2015-05-2811-100/+93
| | | | | | | | | | | | 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.
* utility to translate public suffix data into a c codeVincent Sanders2015-05-061-0/+378
|
* Update posix source version on monkey frontend to reflect oyr usage of scandirVincent Sanders2015-05-031-1/+1
|
* Revert "Fix RISC OS not having a pread/pwrite implementation."Vincent Sanders2015-04-022-45/+0
| | | | | | | This reverts commit 82c7a7a4baf4a7a15381ee720799dc41c3d54909. Conflicts: content/fs_backing_store.c
* Fix RISC OS not having a pread/pwrite implementation.Vincent Sanders2015-03-312-3/+49
|
* Remove fragment from nsurl hash.Michael Drake2015-03-271-3/+0
|
* Move win32 window operations into their own moduleVincent Sanders2015-03-121-0/+2
| | | | | | This splits up a great deal of the win32 window code out from other gui code. It also remove large quantities of unused and junk variables and functions.
* Remove unused #include.Michael Drake2015-03-051-1/+0
|
* Remove include of nsurl from corestrings.hMichael Drake2015-02-262-2/+2
|
* Move FILE_SCHEME_PREFIX to corestrings.Michael Drake2015-02-262-7/+8
|
* add missing errno includeVincent Sanders2015-01-301-0/+1
|
* Updated time_t fallback reading to not fail if the value is 0Vincent Sanders2015-01-301-2/+5
| | | | | | | The non strptime fallback reading of time_t values would report faliure if the value it read was 0 which is a valid time. This fixes this path to only fail if there was an actual error processing the value.
* Cast timeval.usec calculations to int as AmigaOS3 has some conflicting ↵Chris Young2015-01-191-3/+3
| | | | | | headers which means it can be treated as an unsigned value. This ensures the log time is always correct.
* jenkins helper script quoting in shell wilidcard case was wrongVincent Sanders2014-12-211-6/+6
|
* add freebsd to jenkins build script for gtk, framebuffer and monkeyVincent Sanders2014-12-211-1/+26
|
* remove some warnings from freebsd buildVincent Sanders2014-12-212-0/+2
|
* Update the coverity build script for buildsystem HOST/BUILD changesVincent Sanders2014-12-191-3/+3
|
* fix BUILD/HOST usage to work with fixed buildsystemVincent Sanders2014-12-191-45/+45
|
* Improve message split generationVincent Sanders2014-12-021-35/+99
| | | | | | | | | | This changes the message splitting code to ensure that a translation is generated for every different key using a specified language as a fallback if no translation is available. This also allows for a messages to be generated when there is no fallback at all and when the translation is the same as the fallback language
* make coverity build script use updated environment variablesVincent Sanders2014-11-301-4/+2
|
* Fix my spelling of teh everywhereVincent Sanders2014-11-182-2/+2
|
* uipdate jenkins build script to confirm to new core buildsystemVincent Sanders2014-11-161-45/+45
|
* USe the externally built conveniance utf8proc libraryVincent Sanders2014-11-145-14374/+5
|
* doxygen cleanups in utilsVincent Sanders2014-11-129-13/+21
|
* Doxygen fixesVincent Sanders2014-11-091-6/+9
|
* Improve Doxygen documentationVincent Sanders2014-11-081-1/+1
|
* Fix several doxygen issuesVincent Sanders2014-11-083-7/+8
|
* fix dumb mistake in missing a close bracket.Vincent Sanders2014-11-041-1/+1
|
* change logic to check for false instead of not true to fix coverity 1250328Vincent Sanders2014-11-042-5/+5
|
* remove unecessary utils/types.hVincent Sanders2014-11-022-53/+6
| | | | | | This cleans up this header and moves the functionality into more useful places while reducing the include complexity but only pulling in whats required.
* Change contextual content retrieval to browser features.Vincent Sanders2014-11-021-15/+0
| | | | | | | | | | | | | Update the API which allows frontends to acquire the page features (images, link urls or form elements) present at the given coordinates within a browser window. By making this an explicit browser_window API and using the browser.h header for the associated data structure with a more appropriate API naming the usage is much more obvious and contained. Additionally the link url is now passed around as a nsurl stopping it being converted from nsurl to text and back again several times.
* Move host_is_ip_address into urldb, as that's the only thing that cares.Michael Drake2014-10-312-98/+0
|
* remove unused url_init functionVincent Sanders2014-10-312-37/+0
|
* use nsurl_nice and remove url_niceVincent Sanders2014-10-312-113/+0
| | | | | change all callers over to using new API for generating nice filenames from a url and remove the old API.
* Remove unused variable.Michael Drake2014-10-301-1/+0
|
* Add a nsurl_nice, which can replace url_nice.Michael Drake2014-10-302-0/+117
|