summaryrefslogtreecommitdiff
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* 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-073-111/+154
|
* Indentation: spaces to tabs.Michael Drake2016-08-071-3/+3
|
* remove erroneous parameter check to nsoption_snoptionfVincent Sanders2016-08-061-1/+1
| | | | | | The API check and bounds check for option indexes was from an unsigned enum so checking for negative numbers was causing "comparison is always false" errors in compilation.
* improve option test coverage futherVincent Sanders2016-08-061-3/+11
|
* Improve user option testing and API parameter checkingVincent Sanders2016-08-051-9/+38
|
* add tests for utility string handlingVincent Sanders2016-08-041-2/+4
|
* Improve percent escaping testing, parameter checking and documentationVincent Sanders2016-08-031-4/+17
|
* URL escape: Improve API documentation.Michael Drake2016-07-251-4/+6
|
* URL escape: Simplify to avoid unnecessary allocation.Michael Drake2016-07-253-37/+33
| | | | | | | | This removes the toskip parameter, which was only used by the RISC OS front end. The toskip param was used to skip 8 characters which did not need to be escaped from the start of the URL. The RISC OS front end now orders the steps of its URL construction to avoid the need for this.
* Improve comments.Michael Drake2016-07-242-2/+3
|
* URL module: Remove unused curl #include.Michael Drake2016-07-241-1/+0
|
* URL unescape: Calculate new_len at end, rather than maintaining it.Michael Drake2016-07-241-4/+2
|
* URL unescape: return the new length to the caller.Michael Drake2016-07-243-5/+14
| | | | | | | | The avoids situations were we threw away the length, only for the caller to have to strlen the returned string. Note, there seems to be a case of the amiga front end writing beyond end of allocation. Added a TODO for now.
* Avoid using curl for URL unescaping.Michael Drake2016-07-241-10/+66
| | | | This moves us towards working without curl.
* URL unescape: Use size_t for length.Michael Drake2016-07-242-2/+2
|
* Doxygen: Fix instance of bad function comment syntax.Michael Drake2016-07-241-1/+1
|
* reduce curl usage to fetcher, url unescaping and time parsingVincent Sanders2016-06-293-5/+8
|
* move utf8 header into public APIVincent Sanders2016-05-301-1/+1
|
* store toolbar config in standard options instead of a separate fileVincent Sanders2016-05-211-2/+6
|
* Fix several doxygen errorsVincent Sanders2016-05-052-2/+4
|
* remove unused warn_user APIVincent Sanders2016-05-022-24/+0
|
* message get API should not raise user errors itselfVincent Sanders2016-04-291-4/+1
|
* use the miscellaneous table warning entryVincent Sanders2016-04-252-2/+22
| | | | | | | 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.
* for strtof to be redefined on haiku stdlib must be included beforehandVincent Sanders2016-04-212-4/+1
|
* attempt to fix haiku headersVincent Sanders2016-04-211-0/+4
|
* Split utils header into string functions and everything elseVincent Sanders2016-04-216-86/+119
| | | | | 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-212-21/+0
|
* cleanup unneeded includes in utils.h after API simplificationVincent Sanders2016-04-202-4/+2
|
* move remove underscores utility to alongside the single gtk call siteVincent Sanders2016-04-202-31/+0
|
* move regex helper to be with teh single remaining call siteVincent Sanders2016-04-202-24/+0
|
* add missing explicit dirent includesVincent Sanders2016-04-191-0/+1
|
* move dir_sort_alpha function from generic utils to one specific place it is usedVincent Sanders2016-04-192-46/+0
|
* Reduce unecessary use of directory entry headersVincent Sanders2016-04-194-7/+51
| | | | | | | 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 time function to apropriate headerVincent Sanders2016-04-192-8/+8
|
* move sys/time.h support functionality out of generic headerVincent Sanders2016-04-194-29/+54
| | | | | | | 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-173-10/+65
| | | | | | | | 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-162-17/+64
| | | | | | | 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.
* Fix size_t printf formattingVincent Sanders2016-03-172-7/+17
| | | | | | | The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted.
* fixup nsurl handling to avoid locale specific character type implementationVincent Sanders2016-03-141-110/+224
|
* Initial pass removing gtk frontend theme codeVincent Sanders2016-03-081-5/+0
|
* Add script for setting files to git last touched date.Michael Drake2016-02-191-0/+36
| | | | | | | | | This may help with whatever issue is causing a problem with RISC OS !Boot and !System distributions. From the base of the netsurf repo, you can run it like this: $ ./utils/git-date.sh riscos/distribution/
* setup flags for building monkey on RISC OSVincent Sanders2016-02-151-0/+3
|
* Use compiler environment to control riscos header usageVincent Sanders2016-02-152-5/+5
| | | | | Instead of relying on building the RISC OS frontend to determine correct include compatability use the compiler __riscos__ macro.
* Ensure fetch attempts is not reduced to less than 1.Michael Drake2016-02-151-2/+3
|
* Fix constraints on curl_fetch_timeout option.Michael Drake2016-02-151-2/+2
| | | | 5 <= n <= 60 seconds.
* enable monkey to be built everywhere it is completely generic nowVincent Sanders2016-02-121-18/+2
|
* fix coverity build generated tar handlingVincent Sanders2016-02-111-4/+6
|
* fix coverity submission for netsurfVincent Sanders2016-02-091-3/+5
|
* remove possible null dereference on allocation faliureVincent Sanders2016-02-091-2/+2
| | | | fix null dereference is calloc fails. coverity 1316339