<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slstatus/components/run_command.c, branch master</title>
<subtitle>Status monitor for window managers that use WM_NAME or stdin to fill the status bar</subtitle>
<id>https://git.ikboikov.net/slstatus/atom?h=master</id>
<link rel='self' href='https://git.ikboikov.net/slstatus/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/'/>
<updated>2022-10-27T23:03:38Z</updated>
<entry>
<title>radical re-formatting 2/3: Fix blocks</title>
<updated>2022-10-27T23:03:38Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T22:51:34Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=3251e911878b78b0aad8fc09c782f8d81c878f75'/>
<id>urn:sha1:3251e911878b78b0aad8fc09c782f8d81c878f75</id>
<content type='text'>
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
</content>
</entry>
<entry>
<title>radical re-formatting 0/3: Alphabetic headers</title>
<updated>2022-10-27T23:03:20Z</updated>
<author>
<name>drkhsh</name>
<email>me@drkhsh.at</email>
</author>
<published>2022-10-27T21:18:30Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=0696635bcbad06770cce7d5a4c9e8e4d76868307'/>
<id>urn:sha1:0696635bcbad06770cce7d5a4c9e8e4d76868307</id>
<content type='text'>
Except stated otherwise in comment.

Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
</content>
</entry>
<entry>
<title>components/*.c: include slstatus.h</title>
<updated>2022-10-26T21:32:07Z</updated>
<author>
<name>NRK</name>
<email>nrk@disroot.org</email>
</author>
<published>2022-10-26T20:14:53Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=28ef0b242c32e8ae8b4df2b4b380e30bf581130f'/>
<id>urn:sha1:28ef0b242c32e8ae8b4df2b4b380e30bf581130f</id>
<content type='text'>
this gives the compiler a chance to check weather the prototype and
definiton matches or not, which would catch issues like 3c47701.
</content>
</entry>
<entry>
<title>Clean up header includes</title>
<updated>2018-05-30T17:35:37Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-05-30T17:35:37Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=b0401b13bb78bacde9d10b00766830cbeb2c90f6'/>
<id>urn:sha1:b0401b13bb78bacde9d10b00766830cbeb2c90f6</id>
<content type='text'>
 - Remove &lt;errno.h&gt; because related functions are in util.c now
 - Remove corresponding &lt;string.h&gt; if not used otherwise
</content>
</entry>
<entry>
<title>Check return value of pclose()</title>
<updated>2018-05-19T23:01:26Z</updated>
<author>
<name>Laslo Hunhold</name>
<email>dev@frign.de</email>
</author>
<published>2018-05-19T22:57:24Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=b640cc489b65153efcb519feb9038d658b4bf005'/>
<id>urn:sha1:b640cc489b65153efcb519feb9038d658b4bf005</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add warn() and die()</title>
<updated>2018-05-18T09:13:05Z</updated>
<author>
<name>Laslo Hunhold</name>
<email>dev@frign.de</email>
</author>
<published>2018-05-18T08:59:05Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5'/>
<id>urn:sha1:80fc20d1d69b14f36ad9bb64d8af38481cbf1ff5</id>
<content type='text'>
Given slstatus is a tool that runs in the background, most likely run
from .xinitrc, it's important to prepend the name of the tool to error
messages so it becomes clear where the error is coming from.

To make this much more consistent, this commit adds warn() and die()
utility functions consistent with other suckless projects and adapts all
calls to fprintf(stderr, *) to the warn() and die() functions, greatly
increasing the readability of the code.
</content>
</entry>
<entry>
<title>Fix coding style</title>
<updated>2018-05-06T20:28:56Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-05-06T20:28:56Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=ee5ec756218c852385c5ba5ef0f75b47ba59ec39'/>
<id>urn:sha1:ee5ec756218c852385c5ba5ef0f75b47ba59ec39</id>
<content type='text'>
- Use block for single statement ifs
- Keep lines to reasonable length (current debate as to reasonable)
- When functions return -1 for error test against 0 not -1
- Do not indent cases another level
- Do not test against NULL and 0 explicitly
- Use tabs for indentation, use spaces for alignment
</content>
</entry>
<entry>
<title>run_command: Clean up</title>
<updated>2018-05-02T06:29:36Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-05-02T06:29:36Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=f0070071566ad27fa36c49312e1ba3946cd472b5'/>
<id>urn:sha1:f0070071566ad27fa36c49312e1ba3946cd472b5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Format error messages properly</title>
<updated>2018-03-28T17:46:27Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-03-28T17:46:27Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=faa52bdcc0221de2d8fae950e409a8ac5e05bfcd'/>
<id>urn:sha1:faa52bdcc0221de2d8fae950e409a8ac5e05bfcd</id>
<content type='text'>
Make use of strerror(errno) and format all errors equally:
function ['parameters']: error message
</content>
</entry>
<entry>
<title>Get rid of err.h as it is not portable</title>
<updated>2018-03-28T16:26:56Z</updated>
<author>
<name>Aaron Marcher</name>
<email>me@drkhsh.at</email>
</author>
<published>2018-03-28T16:26:56Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/slstatus/commit/?id=96f3a8a54eeb3b2294ed953dad8b15349f3e2703'/>
<id>urn:sha1:96f3a8a54eeb3b2294ed953dad8b15349f3e2703</id>
<content type='text'>
Replace warn() and warnx() with fprintf() and add &lt;stdio.h&gt; where
necessary.
</content>
</entry>
</feed>
