diff options
author | NRK <nrk@disroot.org> | 2022-07-30 10:05:10 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2022-07-30 10:05:10 +0200 |
commit | 94d531fd827457cf71fe7f3808c7a2f531dceba5 (patch) | |
tree | 0ac8b2f178c83c0292a28aea7e6d73f451531a44 /icon/32x32.png | |
parent | 6d8ec5aee31f8eff0288e598372ab94397741a03 (diff) | |
download | nsxiv-94d531fd827457cf71fe7f3808c7a2f531dceba5.tar.zst |
autoreload: simplify and cleanup (#342)
the current code is quite hacky and complex as it mixes multiple pointers. all
of this complexity is unnecessary. drop it by introducing an explicit scratch
buffer instead of implicitly abusing `arl->filename` as one. this also reduces
some unnecessary allocation overhead.
additionally, the argument to arl_setup must be the result of `realpath(3)` (as
commented in `nsxiv.h`). instead of commenting it, assert it.
and lastly, rename `arl_setup` to `arl_add` since it's not doing any "setup"
but rather *adding* a file to watch.
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/342
Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
Diffstat (limited to 'icon/32x32.png')
0 files changed, 0 insertions, 0 deletions