In Sun, 4 Jul 2021 12:34:54 +0200 Laslo Hunhold <[email protected]> wrote:
> the arg.h in st has some "low-hanging" fruits regarding improvements, > and I modified it accordingly in quark and farbfeld back in 2017 (see > [0]) to fix some issues. > > One example is that in my modified form, you can actually access > EARGF()/ARGF() multiple times (instead of silently corrupting the > state), and it properly handles the case when argv is NULL (which is > allowed by POSIX). There was also a bit of > code-deduplication/refactoring with fewer local variables and abort() > was replaced with exit(1). > > Of course and as the license permits, feel free to use it in st or > other projects as well, if you like. :) > > With best regards > > Laslo > > [0]:https://git.suckless.org/quark/file/arg.h.html > Incoming apple pieces ))))) It so happens, that I usually enhance style while analysing, so it usually comes before real changes (last two commits).
