Boris Faure
3973f4c348
termiolink: be able to fuzz color parser
2020-06-15 13:21:00 +02:00
Boris Faure
1866e43386
termiolink: parse css hsl color + unit test
2020-06-15 13:21:00 +02:00
Boris Faure
8d1d854bdf
tests: add one on link over css rgb colors
2020-06-15 13:20:59 +02:00
Boris Faure
4b0de53914
termiolink: use eina_convert_strtod_c() to avoid issues with $LANG
...
because it may parse ',' as a separator (in french for example).
+ stop parsing forward on ')'
2020-06-15 13:20:59 +02:00
Boris Faure
129cda9536
termiolink: switch case is better than broken bsearch
...
(list was not correctly sorted)
2020-06-15 13:20:59 +02:00
Boris Faure
6dc89a5f6a
termiolink: detect rgb() colors + utest
2020-06-15 13:20:59 +02:00
Boris Faure
1e8d5db14c
tests: on color links found in EDC files
2020-06-15 13:20:59 +02:00
Boris Faure
2f040f9532
termiolink: handle tabs in (color) links
2020-06-15 13:20:59 +02:00
Boris Faure
f23467407c
termiolink: add unit test on parsing edc color
2020-06-15 13:20:59 +02:00
Boris Faure
0051a28996
termiolink: add tests on some parsing functions
2020-06-15 13:20:59 +02:00
Boris Faure
10c720aa00
termiolink: rework color finder
2020-06-15 13:20:59 +02:00
Boris Faure
2832f79b59
theme: add name to the color being previewed
2020-06-15 13:20:58 +02:00
Boris Faure
2be609daab
termio: add popup on right click on color to copy it
2020-06-15 13:20:58 +02:00
Boris Faure
6761f05d06
test: one on detecting colors
2020-06-15 13:20:58 +02:00
Boris Faure
990ef95c8b
termptyext: be able to test color links
2020-06-15 13:20:58 +02:00
Boris Faure
ef81f975c0
doc: new group "termiolink/color_preview"
2020-06-15 13:20:58 +02:00
Boris Faure
b05a48d0c9
termiolink: constify
2020-06-15 13:20:58 +02:00
Boris Faure
c1ac8e05a3
color preview: have a better background
2020-06-15 13:20:58 +02:00
Boris Faure
127f0987ee
link: display tooltip on colors like #ff00ff
2020-06-15 13:20:58 +02:00
Boris Faure
f5fe32f70b
termiolink: isalpha() may produce unsigned-integer-overflow
2020-06-15 13:18:56 +02:00
Boris Faure
42cff98227
tytest: reset color just after using it
2020-06-15 12:56:14 +02:00
Boris Faure
2b5f698c91
utf8: avoid implicit signedness conversions
2020-06-13 00:13:18 +02:00
Boris Faure
442ce78874
termiointernals: avoid implicit signedness conversions
2020-06-13 00:13:18 +02:00
Boris Faure
db7ca27635
termptyesc: explicit conversions
2020-06-13 00:13:12 +02:00
Boris Faure
6aff48abe1
termpty: fix ubsan-detected issue
...
../src/bin/termpty.c:988:9: runtime error: implicit conversion
from type 'int' of value -1 (32-bit, signed) to type 'unsigned long'
changed the value to 18446744073709551615 (64-bit, unsigned)
2020-06-12 22:38:33 +02:00
Boris Faure
2d9d1c6a82
md5: disable unsigned-integer-overflow sanitizer
2020-06-12 22:35:22 +02:00
Boris Faure
668c506a18
circleci: be stricter on ubsan
2020-06-11 23:32:13 +02:00
Boris Faure
161fa2022c
circleci: no longer test against EFL-1.20/EFL-1.21
2020-06-11 23:22:47 +02:00
Boris Faure
983b6698ac
README/build: bump required EFL to 1.22
...
Done so that eina_convert_strtod_c is available
2020-06-11 23:19:36 +02:00
Boris Faure
c37a16151c
termiolink: no need to double semicolons (they don't make a colon…)
2020-06-04 22:44:39 +02:00
Boris Faure
11c7bb2c3b
termiolink: avoid long cascade of cases (implicit fallthrough)
2020-05-31 22:27:28 +02:00
Boris Faure
b02a6d861c
snap: use efl-1.24.2
2020-05-30 18:32:22 +02:00
Carsten Haitzler
232553ca13
fix linking to libm due to using math funcs
2020-05-27 11:59:41 +01:00
Boris Faure
4144170cfc
termiointernals: use a switch/case
...
and let the compiler do the optimization and unroll the binary search
itself.
I wrote a micro benchmark:
1. switch_fallthrough: 9597502784 ns
2. switch_return: 8921069697 ns
3. binary_search: 18403018625 ns
The results are pretty consistent over multiple runs.
1st is switch case with one return at the end and lots of
fallthrough.
2nd is a return of each case,
3rd is the original code.
2020-05-26 23:27:08 +02:00
Boris Faure
eba80af2ea
sb: extract tests
2020-05-24 19:00:24 +02:00
Boris Faure
745b93e95b
termiointernals: _codepoint_is_wordsep() is const
2020-05-24 18:19:48 +02:00
Boris Faure
abdef9786c
have define BINARY_TYFUZZ/BINARY_TYTEST
2020-05-24 18:05:39 +02:00
Boris Faure
1702931b1b
mv src/bin/md5/md5.{c,h} src/bin/
2020-05-24 17:48:59 +02:00
Boris Faure
4703e374b9
sb: add some more tests
2020-05-24 00:35:27 +02:00
Boris Faure
c2c324c497
sb: fix error: applying zero offset to null pointer
...
Found by UndefinedBehaviorSanitizer
2020-05-24 00:19:33 +02:00
Boris Faure
04a47e0e19
sb: add unit tests + fix a few issues
2020-05-24 00:05:29 +02:00
Boris Faure
15ee3702db
sb: add ty_sb_spaces_ltrim()
2020-05-23 16:26:57 +02:00
Boris Faure
4a12891493
ci: run "tytest dummy" to ensure finding a test works
2020-05-23 12:08:50 +02:00
Boris Faure
a18b482bf0
run unit tests in ci
2020-05-23 11:59:34 +02:00
Boris Faure
63815156aa
dumb framework to run unit tests in terminology
2020-05-23 11:59:34 +02:00
Boris Faure
392bfdb4a7
tests: rework tytest.c/tyfuzz.c to no longer #include one in the other
2020-05-23 11:59:24 +02:00
Boris Faure
bb09c80ab4
Merge branch 'terminology-1.7'
2020-05-19 23:57:59 +02:00
Boris Faure
5cae99eee1
options: word-wrap some labels
2020-05-19 23:56:06 +02:00
Boris Faure
ec344090aa
scale wizard: word-wrap the labels
2020-05-19 23:41:39 +02:00
Boris Faure
7e737564c8
tests: add one about '-' not being a word separator
2020-05-18 23:29:02 +02:00