summaryrefslogtreecommitdiff
path: root/utils/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* another attempt to provide strtoull on amiga os 3Vincent Sanders2019-10-201-1/+1
|
* add missing include for amiga os 3 strtoullVincent Sanders2019-10-201-0/+2
|
* attempt a different fix for amiga os 3 strtoullVincent Sanders2019-10-201-0/+13
|
* improve human_friendly_bytesize to cope with sizes up to 16 exibytesVincent Sanders2019-10-191-15/+57
|
* add regex compatability to utils and enable it for serenity OSVincent Sanders2019-10-121-2/+45
|
* Add header that may be needed for Windows build. (CI fix attempt.)Michael Drake2016-08-081-0/+1
|
* Utils: Split time handling functions out of `utils.c` into `time.c`.Michael Drake2016-08-071-107/+0
|
* Indentation: spaces to tabs.Michael Drake2016-08-071-3/+3
|
* add tests for utility string handlingVincent Sanders2016-08-041-2/+4
|
* remove unused warn_user APIVincent Sanders2016-05-021-12/+0
|
* use the miscellaneous table warning entryVincent Sanders2016-04-251-0/+12
| | | | | | | change all the frontends to provide the warning callback in the miscelaneous table instead of using the warn_user function. Changing all the warn_user callsites still requires completion.
* 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.
* remove unused wallclock APIVincent Sanders2016-04-211-11/+0
|
* move remove underscores utility to alongside the single gtk call siteVincent Sanders2016-04-201-22/+0
|
* move regex helper to be with teh single remaining call siteVincent Sanders2016-04-201-16/+0
|
* move dir_sort_alpha function from generic utils to one specific place it is usedVincent Sanders2016-04-191-35/+0
|
* Reduce unecessary use of directory entry headersVincent Sanders2016-04-191-0/+5
| | | | | | | The config header was causing many source files to unecessarily include the dirent headers causing extra dependancies. This has been fixed by providing a utility dirent header that provides a common API across all platforms while removing the unecessary dirent header usage.
* move sys/time.h support functionality out of generic headerVincent Sanders2016-04-191-1/+0
| | | | | | | The utils header is a large collection of functionality for several system headers and API. This splits out the ones from sys/time.h into a separate header reducing the need for many unconnected source files to include the system header unecessarily.
* Reduce unecessary use of networking headersVincent Sanders2016-04-171-0/+1
| | | | | | | | The utility configuration header dragged in a number of bsd sockets and related API as a side effect of setting up the configuration. By splitting the header and API setup into a separate header only the small number of places that need the functionality explitly include it.
* create date and time to seconds since epoch processing utility functionVincent Sanders2016-04-161-16/+41
| | | | | | | currently NetSurf uses curl_getdate to convert textural date and time strings into seconds since epoch. It is betetr to move this functionality to a utility function so curl_getdate can easily be replaced if required.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-1/+1
| | | | | | | | | | | | 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.
* 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-021-32/+0
| | | | | | | This reverts commit 82c7a7a4baf4a7a15381ee720799dc41c3d54909. Conflicts: content/fs_backing_store.c
* Fix RISC OS not having a pread/pwrite implementation.Vincent Sanders2015-03-311-0/+32
|
* 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.
* make regex wrapper return errors instead of just abortingVincent Sanders2014-10-251-3/+6
|
* add helpers for time_t reading/writingVincent Sanders2014-05-151-17/+46
|
* make vsnstrjoin correctly check for null arguments.Vincent Sanders2014-05-131-0/+4
|
* fix typo in nsc_time_strptimeVincent Sanders2014-05-131-1/+1
|
* add struct tm definition and fix build errorVincent Sanders2014-05-131-1/+1
|
* add strptime compatabilityVincent Sanders2014-05-131-0/+27
|
* cleanup utils header, remove cruft and add documentationVincent Sanders2014-05-111-81/+23
|
* add string utility to join stringsVincent Sanders2014-05-071-0/+79
|
* Update for new lpu API.Michael Drake2013-12-141-14/+0
|
* Sort non zero-padded numerical filename parts correctly.Michael Drake2013-11-141-0/+35
|
* Add own implementations of alphasort and scandir when not available.Michael Drake2013-11-141-0/+84
|
* cleanup tree_create_leaf_node text ownershipVincent Sanders2013-05-041-15/+23
|
* Move timeval_subtract to utils/log.c & make it static, as it's not used ↵John Mark Bell2011-10-151-28/+0
| | | | | | anywhere else svn path=/trunk/netsurf/; revision=13059
* Make strchrnul stupid.John Mark Bell2011-04-081-132/+5
| | | | svn path=/trunk/netsurf/; revision=12174
* Fix build with NDEBUG definedJohn Mark Bell2011-04-031-3/+0
| | | | svn path=/trunk/netsurf/; revision=12154
* add compatability for inet_pton and inet_atonVincent Sanders2011-02-071-0/+52
| | | | svn path=/trunk/netsurf/; revision=11627
* Fix windows url barVincent Sanders2010-10-171-0/+28
| | | | | | Clean up toolbar and urlbar creation and subclassing svn path=/trunk/netsurf/; revision=10891
* add realpath compatability for windowsVincent Sanders2010-10-091-0/+15
| | | | svn path=/trunk/netsurf/; revision=10873
* Consolidate several 'myrealloc' functions into ns_realloc, rename one which ↵Daniel Silverstone2010-04-301-0/+13
| | | | | | *is* different, thereby eliminating the word 'myrealloc' from the NS codebase svn path=/trunk/netsurf/; revision=10530
* hopefully fix the _GNU_SOURCE messVincent Sanders2010-04-261-0/+2
| | | | svn path=/trunk/netsurf/; revision=10487
* remove _GNU_SOURCE define from everywhere.Vincent Sanders2010-04-241-2/+0
| | | | | | strndup is not standard so provide an implementation. svn path=/trunk/netsurf/; revision=10474
* Add Windows frontendVincent Sanders2010-01-311-0/+14
| | | | svn path=/trunk/netsurf/; revision=9940
* Merge branches/MarkieB/gtkmain to trunk.John Mark Bell2009-12-171-0/+23
| | | | svn path=/trunk/netsurf/; revision=9729
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-18/+165
| | | | svn path=/trunk/netsurf/; revision=8752