Commit Graph

2850 Commits

Author SHA1 Message Date
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
Boris Faure 13fce0866c
Merge branch 'terminology-1.7' 2020-05-18 22:29:25 +02:00
Boris Faure 446823b6ea
options_elm: fix original _find_binary 2020-05-18 22:25:20 +02:00
Boris Faure 1b88cd96e6
snap efl patch: remove useless assignment 2020-05-18 22:24:04 +02:00
Boris Faure 6836f16ee6
Merge branch 'terminology-1.7' 2020-05-18 22:20:11 +02:00
Boris Faure 4745752fab
snap: make embedded efl able to start efreetd
+ add new dependencies + reorder deps
+ Also change the source for efl to my own that I find way more reliable
than efl's server (might only be because I'm closer)
2020-05-18 22:18:54 +02:00
Boris Faure 29cce7e73e
termiointernals.c: do not consider '-' as a word separator 2020-05-18 16:24:51 +02:00
Boris Faure e082daa6c1
snap: use efl-1.24.1 2020-05-17 10:22:49 +02:00
Boris Faure de969e7cef
Merge branch 'terminology-1.7' 2020-05-16 19:09:53 +02:00
Boris Faure 1d5eee0e60
focus validator: be less strict when changing tabs
Closes T8722
2020-05-16 19:07:28 +02:00
Boris Faure 3be858b09b
termiointernals: handle EM (end of medium) as word separator 2020-05-11 23:22:58 +02:00
Boris Faure 8c410d0e1d
on the road again
Ok, I need to be more creative on commit messages after releases
2020-05-11 19:22:25 +02:00
Boris Faure 73fd0ab649
1.7.0 is now! 2020-05-10 20:35:43 +02:00
Boris Faure 26ff40651b
update AUTHORS file 2020-05-10 10:30:42 +02:00
Boris Faure 876036f009
termptyesc: randomize new entry in the true color cache 2020-05-09 00:04:20 +02:00
Boris Faure b088592f79
update Changelog/NEWS with updated translations 2020-05-08 23:26:11 +02:00
milotype e94b14f49c Updagte Croatian translation hr.po
While translating German, I realized I need to make some corrections in the Croatian translation. Sorry!
2020-05-08 23:24:51 +02:00
milotype abd834be67 Update complete German translation de.po 2020-05-08 23:24:51 +02:00
Boris Faure 9316652127
tests: reuse one of 32 TrueColors over the terminal 2020-05-08 23:16:43 +02:00
Boris Faure 1bd27081c3
tests: on true color cache thrashing
when new items are added to the cache and entries there are never reused
2020-05-08 16:58:03 +02:00