<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nsxiv/thumbs.c, branch master</title>
<subtitle>Nsxiv image view custom build
</subtitle>
<id>https://git.krolyxon.com/nsxiv/atom?h=master</id>
<link rel='self' href='https://git.krolyxon.com/nsxiv/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/'/>
<updated>2023-03-11T12:37:04Z</updated>
<entry>
<title>apply clang-format</title>
<updated>2023-03-11T12:37:04Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2023-02-10T05:35:53Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=f2f4903de4bd3ce06c03dd66f0c9a7dda97a3550'/>
<id>urn:sha1:f2f4903de4bd3ce06c03dd66f0c9a7dda97a3550</id>
<content type='text'>
minus the bogus changes

Co-authored-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
</content>
</entry>
<entry>
<title>update copyright year</title>
<updated>2023-01-28T10:29:36Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2023-01-15T09:26:46Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=a051ad210dc0571ec581c89171dc25b9ab35f4be'/>
<id>urn:sha1:a051ad210dc0571ec581c89171dc25b9ab35f4be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>use assertions instead of ignoring bogus arguments (#406)</title>
<updated>2023-01-28T10:27:40Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2023-01-28T10:27:40Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=01f3cf2e4778940a82001e48cfeec767841f52c4'/>
<id>urn:sha1:01f3cf2e4778940a82001e48cfeec767841f52c4</id>
<content type='text'>
instead of silently ignoring bogus arguments (i.e programming errors),
which can make debugging harder, it's better to assert them so that they
get caught faster in debug builds.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/406
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>code-style: misc changes (#374)</title>
<updated>2022-10-19T12:46:22Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-10-19T12:46:22Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=b11384a6942cdf3c6b6f55e0dcc0a438eff7158a'/>
<id>urn:sha1:b11384a6942cdf3c6b6f55e0dcc0a438eff7158a</id>
<content type='text'>
* ensure static variables comes after non-static ones
* remove depreciated DATA32 type
* prefer `sizeof(expression)` over `sizeof(Type)`.
* silence a -Wsign warning
* {gif,webp} loader: use a pointer to reduce code-noise
* gif loader: allocate in one place

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/374
Reviewed-by: TAAPArthur &lt;taaparthur@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>code-style: don't indent switch cases (#358)</title>
<updated>2022-08-16T08:54:31Z</updated>
<author>
<name>explosion-mental</name>
<email>explosion-mental@noreply.codeberg.org</email>
</author>
<published>2022-08-16T08:54:31Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=0f0c49a630285af10c765e0b724896ff281e7b66'/>
<id>urn:sha1:0f0c49a630285af10c765e0b724896ff281e7b66</id>
<content type='text'>
The suckless coding style [^0] and the linux coding style [^1] both
recommends not indenting switch cases. And it helps out people with
lower resolution monitors.

[^0]: https://suckless.org/coding_style/
[^1]: https://www.kernel.org/doc/html/v5.10/process/coding-style.html#indentation

Co-authored-by: explosion-mental &lt;explosion0mental@gmail.com&gt;
Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/358
Reviewed-by: NRK &lt;nrk@disroot.org&gt;
Co-authored-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
Co-committed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>fix: -Wsign-compare warnings (#336)</title>
<updated>2022-07-15T20:46:23Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-07-15T20:46:23Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=c131b1ed83da70fd739aff90ea3e8e829549ff43'/>
<id>urn:sha1:c131b1ed83da70fd739aff90ea3e8e829549ff43</id>
<content type='text'>
mixing signed and unsigned types in comparison can end up having
unintended results. for example:

	if (-1 &lt; 1U)
		printf("true\n");
	else
		printf("false\n");

previously we silenced these warnings, instead just fix them properly
via necessary casting, and in cases where the value cannot be negative
(e.g width/height members) make them unsigned.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/336
Reviewed-by: explosion-mental &lt;explosion-mental@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>code-style: cleanup includes</title>
<updated>2022-06-28T19:28:06Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-05-31T11:25:14Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=6d5a04005dd1dff12ebfe2e3a56912ec26718f3f'/>
<id>urn:sha1:6d5a04005dd1dff12ebfe2e3a56912ec26718f3f</id>
<content type='text'>
* rm unused include &lt;sys/types.h&gt;
* move &lt;sys/time.h&gt; to main.c, it's the only file that needs it.
* move TV_* macros to main.c
* let *.c files explicitly include what they need instead of including
  them at nsxiv.h
</content>
</entry>
<entry>
<title>fix: don't use reserved identifiers</title>
<updated>2022-06-25T06:27:01Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-15T07:42:34Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=b28449e10c92c304434645872199d8f8cb2448b4'/>
<id>urn:sha1:b28449e10c92c304434645872199d8f8cb2448b4</id>
<content type='text'>
identifiers beginning with an underscore is reserved by the C standard.
</content>
</entry>
<entry>
<title>r_mkdir: don't truncate the path on error (#322)</title>
<updated>2022-06-22T03:05:03Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-22T03:05:03Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=9812d601c16fb243aac788abfeb9ea01a7870466'/>
<id>urn:sha1:9812d601c16fb243aac788abfeb9ea01a7870466</id>
<content type='text'>
currently, in case of error, r_mkdir will leave the path at a truncated
state.

a7d39b0ab8 is the commit that introduced this change, and in it the
error printing is moved from r_mkdir to the caller, which makes me think
it was probably intentional.

make it so that the function itself prints the error/warning
message and returns the path back to the caller unharmed.

Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/322
Reviewed-by: Berke Kocaoğlu &lt;berke.kocaoglu@metu.edu.tr&gt;
Reviewed-by: TAAPArthur &lt;taaparthur@noreply.codeberg.org&gt;
</content>
</entry>
<entry>
<title>reduce calls to win-title</title>
<updated>2022-06-02T08:09:51Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-06-01T08:59:16Z</published>
<link rel='alternate' type='text/html' href='https://git.krolyxon.com/nsxiv/commit/?id=810a9651a362992383081619ca63122f41f1cd0a'/>
<id>urn:sha1:810a9651a362992383081619ca63122f41f1cd0a</id>
<content type='text'>
rather than calling the script unconditionally per redraw, we now have
a `title_dirty` flag and keep track of when any of the relavent
information changes.

Co-authored-by: Arthur Williams &lt;taaparthur@gmail.com&gt;
Partially fixes: https://github.com/nsxiv/nsxiv/issues/258
</content>
</entry>
</feed>
