Michael Drake
b42d253f86
Table cell nowrap attribute is presentational hint, not UA style.
2016-10-13 12:44:27 +01:00
Vincent Sanders
22d917c92d
allow gtk3 target in CI system
2016-10-08 20:32:15 +01:00
Vincent Sanders
a2396edde4
complete transition to locale independant core operation
...
The netsurf core no longer uses any locale dependant operations
excepting the mall number or cases where such operations are
explicitly wanted.
the netsurf_init now calls setlocale with the empty string and lets
the c library setup as per its specific implementation.
any core functionality that specificaly processes ascii text must use
the utils/ascii.h header to do so.
2016-09-29 22:37:10 +01:00
Michael Drake
f89ec1df37
Utils: Remove redundant genpubsuffix.pl (using libnspsl now).
2016-09-26 10:15:05 +01:00
Vincent Sanders
608a18caff
remove junk references to old javascript implementations
2016-09-19 22:02:51 +01:00
Vincent Sanders
c830d14d0b
cleanup seevral doxygen warnings
2016-09-13 09:16:31 +01:00
Michael Drake
30646c3145
Time: Micro-optimisation: Put GMT first in timezone list.
2016-08-17 09:07:44 +01:00
Vincent Sanders
02360ec7be
add some corestrings API tests and fix corestrings fini.
2016-08-14 23:49:53 +01:00
Michael Drake
f23405f667
Time: Add date string to time_t parser.
2016-08-13 13:11:48 +01:00
Michael Drake
a1668f6c1e
url: Use ascii module, rather than ctype for locale safetly.
2016-08-13 12:05:55 +01:00
Michael Drake
efeeacca86
nsurl: Update to use ascii_* helper functions.
2016-08-13 12:05:55 +01:00
Michael Drake
16b66d3af5
Utils: Add a set of ASCII string parsing helpers.
...
These are not affected by the current locale.
2016-08-13 12:05:54 +01:00
Michael Drake
477b65eac0
Time: Expose arrays of weekday and month names.
2016-08-13 12:05:54 +01:00
Michael Drake
1457a049bb
Treeview: Add treeview_font_size
to options.
...
Default is 11pt, and RISC OS overrides to 12pt.
2016-08-11 08:15:21 +01:00
Michael Drake
655b619fd4
Add header that may be needed for Windows build. (CI fix attempt.)
2016-08-08 15:17:56 +01:00
Michael Drake
4394587ab0
Utils: Split time handling functions out of utils.c
into time.c
.
2016-08-07 15:22:13 +01:00
Michael Drake
0e76523e4c
Indentation: spaces to tabs.
2016-08-07 14:54:46 +01:00
Vincent Sanders
c0f4bbb308
remove erroneous parameter check to nsoption_snoptionf
...
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.
2016-08-06 10:27:32 +01:00
Vincent Sanders
62b76bf31a
improve option test coverage futher
2016-08-06 01:20:37 +01:00
Vincent Sanders
afc79d5912
Improve user option testing and API parameter checking
2016-08-05 22:34:44 +01:00
Vincent Sanders
e8df81fdb3
add tests for utility string handling
2016-08-04 00:19:48 +01:00
Vincent Sanders
eb5e0599af
Improve percent escaping testing, parameter checking and documentation
2016-08-03 15:04:28 +01:00
Michael Drake
0c7649d030
URL escape: Improve API documentation.
2016-07-25 09:04:35 +01:00
Michael Drake
a122b94efd
URL escape: Simplify to avoid unnecessary allocation.
...
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.
2016-07-25 09:04:35 +01:00
Michael Drake
7417a21bb1
Improve comments.
2016-07-24 19:48:03 +01:00
Michael Drake
e88d82f87f
URL module: Remove unused curl #include.
2016-07-24 14:16:12 +01:00
Michael Drake
b4e21b76fd
URL unescape: Calculate new_len at end, rather than maintaining it.
2016-07-24 14:03:28 +01:00
Michael Drake
fa2e3b7784
URL unescape: return the new length to the caller.
...
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.
2016-07-24 14:03:16 +01:00
Michael Drake
cf753f20cc
Avoid using curl for URL unescaping.
...
This moves us towards working without curl.
2016-07-24 13:29:01 +01:00
Michael Drake
a543206075
URL unescape: Use size_t for length.
2016-07-24 12:33:51 +01:00
Michael Drake
90a260a2cc
Doxygen: Fix instance of bad function comment syntax.
2016-07-24 12:21:23 +01:00
Vincent Sanders
c313524998
reduce curl usage to fetcher, url unescaping and time parsing
2016-06-29 23:06:53 +01:00
Vincent Sanders
aa5090c85b
move utf8 header into public API
2016-05-30 11:20:15 +01:00
Vincent Sanders
5061687867
store toolbar config in standard options instead of a separate file
2016-05-21 12:17:49 +01:00
Vincent Sanders
e181a7fcf2
Fix several doxygen errors
2016-05-05 22:41:03 +01:00
Vincent Sanders
6da3b3102c
remove unused warn_user API
2016-05-02 16:09:28 +01:00
Vincent Sanders
7b28db6249
message get API should not raise user errors itself
2016-04-29 09:41:10 +01:00
Vincent Sanders
bf3ee089cb
use the miscellaneous table warning entry
...
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.
2016-04-25 23:11:55 +01:00
Vincent Sanders
a828150d9c
for strtof to be redefined on haiku stdlib must be included beforehand
2016-04-21 23:56:16 +01:00
Vincent Sanders
04841668f0
attempt to fix haiku headers
2016-04-21 23:37:35 +01:00
Vincent Sanders
7d9c9dba36
Split utils header into string functions and everything else
...
split out the string handling API from the rest of the utils header
and fix up all the fallout.
2016-04-21 22:36:21 +01:00
Vincent Sanders
3488e337b6
remove unused wallclock API
2016-04-21 14:34:36 +01:00
Vincent Sanders
f33d9dcc8c
cleanup unneeded includes in utils.h after API simplification
2016-04-20 23:56:29 +01:00
Vincent Sanders
dd31499bf9
move remove underscores utility to alongside the single gtk call site
2016-04-20 23:38:08 +01:00
Vincent Sanders
7ba291037b
move regex helper to be with teh single remaining call site
2016-04-20 23:33:31 +01:00
Vincent Sanders
d29bccdb3a
add missing explicit dirent includes
2016-04-19 15:56:57 +01:00
Vincent Sanders
afea659fef
move dir_sort_alpha function from generic utils to one specific place it is used
2016-04-19 12:01:05 +01:00
Vincent Sanders
1bc010665e
Reduce unecessary use of directory entry headers
...
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.
2016-04-19 11:21:06 +01:00
Vincent Sanders
4f38963337
move time function to apropriate header
2016-04-19 10:36:35 +01:00
Vincent Sanders
836ea5679e
move sys/time.h support functionality out of generic header
...
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.
2016-04-19 09:16:09 +01:00