Commit Graph

2786 Commits

Author SHA1 Message Date
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
Boris Faure 850ffa30d6
changelog/news: about new escape code on term program + version
+ env variables
2020-05-07 00:25:37 +02:00
Boris Faure 52ab21783a
test: test escape code to get term name + version
obviously will have to change that on each new version…
2020-05-06 23:53:49 +02:00
Boris Faure 9977b8a63b
termpty: set TERM_PROGRAM/TERM_PROGRAM_VERSION env variables 2020-05-06 23:49:00 +02:00
Boris Faure 106f8b5c9a
termptyesc: handle terminal query
New, still debated on https://gitlab.freedesktop.org/terminal-wg/specifications/issues/8
2020-05-06 23:44:05 +02:00
Boris Faure 914e440863
update ChangeLog/NEWS with new croatian translation 2020-05-06 23:10:24 +02:00
milotype 88f2c38e9e Release of Croatian translation hr.po 2020-05-06 23:07:38 +02:00
milotype 56b2877188 Update LINGUAS with hr
- update for Croatian
2020-05-06 23:07:38 +02:00
Boris Faure d7fe122dc1
ChangeLog: of course, the next release is 1.7.0
Thanks to thrice!
2020-05-05 21:51:41 +02:00
Boris Faure 732d6e9381
tests: box selection scrolls down 2020-05-05 21:51:41 +02:00
Boris Faure 8550d87ecf
tests: selection to the bottom scrolls down 2020-05-05 21:51:41 +02:00
Boris Faure 422ef9f67e
tests: add box selection that scrolls up 2020-05-05 21:51:41 +02:00
Boris Faure 197d407b76
tests: add one making a box selection in the backlog 2020-05-05 21:51:41 +02:00
Boris Faure 218b2fb4d0
tests: add one when selection scrolls up 2020-05-05 21:51:41 +02:00
Boris Faure 144db18649
termiointernals: no timer in tests 2020-05-05 21:51:40 +02:00