Commits
- Commit:
3d89457cdeba5041aa6f0c1f8640b91bcbb6ec51
- From:
- Thomas Adam <thomas.adam22@gmail.com>
- Date:
code: add wrappers for common failure cases
Certain calls to well-known functions sometimes result in similar
error handling across the code base. Sometimes there's a need to
centralise the failure case.
Achieve this for common wrappers to often-used functions.
The transformation is achieved via coccinelle, commited with this patch.
Note that coccinelle can be told to ignore code blocks with comment
delimiters.
This transformation applies just to telescope's code, and not any of the
bundled depdencies in telescope (libgrapheme).
- Commit:
61ddb6ceb3931bee4b5cba74a54b9a47978ced7d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
clean up unused includes
- Commit:
a3054746d2d2a6efa84f5a425c977ca47857273d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move unicode_isgraph in minibuffer.c (codepoint_isgraph)
- Commit:
7182646cf1c65c009e04b742d2b28213ec38439e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove unused unicode_isspace
- Commit:
87d297d14e29cf2c5a8a11b8f4db518d9217e337
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move imsgev & co to their own file
This avoids bringing the dependency on ev on telescope-identity(1) and
the tests as well.
- Commit:
98d3e6c172747dc58042bde09a848d3e03572934
- From:
- Omar Polo <op@omarpolo.com>
- Date:
convert telescope to use ev instead of libevent
libevent is a very cool library, I like the APIs and enjoy using
it. However, telescope is not as large and doesn't have as many
file descriptor, so libevent is quite ``too big'' for our needs.
ev started as a small event loop on top of poll(2) for amused, and
can be used here too, it just needed to grow the ability to handle
several timers, as we need quite some on telescope (in fact, we use
more timers than fds!)
- Commit:
62cbcdae43d424ecc31a54bd67fd22a7120bf9fa
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove imsg_borrow_str
it's redundant due to ibuf_borrow_str()
- Commit:
54764e41a11e16a56da805313f209a9937c5173d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
send the reply code and meta in a single imsg
- Commit:
b148be7145ec930043173b11be95bf6327d3b598
- From:
- Omar Polo <op@omarpolo.com>
- Date:
inline dispatch_imsg(); start to use some newer imsg api
- Commit:
ee0aac2f009a841246854bc189070f07803d0d2e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
work around macos lack of SOCK_CLOEXEC / SOCK_NONBLOCK
rework mark_nonblock so it sets the cloexec flag too and use it in
control.c to avoid these flags. (which are expected to become available
on a future revision of POSIX and are already widely available.)
It's not an issue for telescope to do the socket/accept + fcntl dance
because there aren't threads that can fork(2) (there are no threads at
all!)
reported by @sikmir at github
https://github.com/omar-polo/telescope/commit/59ef79dd19611c7846b00427e6f2267c748ae290#r74498414
- Commit:
d89eb764fd5d3a5ec0b5b30d85ecdc14789bb7cf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
replace has_prefix with strncmp
- Commit:
0f559c556ffae888dccd908739c09005bedbf6d0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
make imsg_event_add public
- Commit:
7018345e07c0a8b71442b79572da308c75f7cd02
- From:
- Omar Polo <op@omarpolo.com>
- Date:
copy^W add IMSG_DATA_SIZE too
- Commit:
c553191ed9d1aa9c51b3617893fc11019635c3cd
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename util.c -> utils.c for consistency