[dev][sbase] cal improvements

2014-07-04 Thread Krol, Willem van de
Good evening, Attached are two patches. The first is to optimize the leap year calculation, and the second patch changes the dayofweek algorithm to fix the handling of a different first day of the week (that is, fday != 0). Sincerely, Willem 0001-optimized-isleap-function.patch Description: Bin

Re: [dev] [sinit] 0.9 release

2014-04-19 Thread Krol, Willem van de
Isn't setpgid(0, 0) after setsid() redundant?

Re: [dev][sic][PATCH] reset channel buffer after leaving saved channel

2014-02-24 Thread Krol, Willem van de
Yes, but very late. I waited more than a day but didn't see my mail on the mailing list for some strange reason. On Mon, Feb 24, 2014 at 5:47 PM, Carlos Torres wrote: > Hello, > > On 2/24/14, Krol, Willem van de <008...@jfc.nl> wrote: >> Hi, >> >> sic

Fwd: [dev][sic][PATCH] reset channel buffer after leaving saved channel

2014-02-24 Thread Krol, Willem van de
Hi, sic saves the first channel you join, but doesn't reset this after you leave that channel. This patch fixes this, so the channel buffer will contain the right channel if you joined only one channel. Willem van de Krol 0001-reset-channel-buffer-after-leaving-saved-channel.patch Description:

[dev][sic][PATCH] reset channel buffer after leaving saved channel

2014-02-22 Thread Krol, Willem van de
Good evening, sic saves the first channel you join, but doesn't reset this after you leave that channel. This patch fixes this, so the channel buffer will contain the right channel if you joined only one channel. Willem van de Krol 0001-reset-channel-buffer-after-leaving-saved-channel.patch Des

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread Krol, Willem van de
On Mon, Feb 10, 2014 at 9:11 PM, sin wrote: > Fixed :) Nice, thank you.

Re: [dev] Announcing sinit - the suckless init

2014-02-10 Thread Krol, Willem van de
On Fri, Feb 7, 2014 at 2:02 PM, sin wrote: > Yes, I realize signalfd() is Linux specific... aw well. Why did you choose signalfd() over sigwait()? The only advantage of signalfd() seems to be poll()-ing or similar actions, which are not used in sinit. Willem

Re: Asshole vs. reality [was: Re: [dev] Question about arg.h]

2013-11-06 Thread Krol, Willem van de
> Asshole vs. reality [was: Re: [dev] Question about arg.h] I should have never asked...

Re: [dev] [sbase] [patch] No need to use USED() in arg.h for sbase

2013-11-06 Thread Krol, Willem van de
On Wed, Nov 6, 2013 at 2:27 PM, sin wrote: > ok? In my opinion, it's better to remove it, indeed. It's useless.

Re: [dev] Question about arg.h

2013-11-06 Thread Krol, Willem van de
I really enjoy this mailing list, because discussions about random topics result in a debate about something completely irrelevant.

Re: [dev] Question about arg.h

2013-11-05 Thread Krol, Willem van de
It's in sbase arg.h On Tue, Nov 5, 2013 at 9:09 PM, Alexander Huemer wrote: > On Tue, Nov 05, 2013 at 08:26:01PM +0100, Krol, Willem van de wrote: >> The arguments (argc, argv) _are used, in the for loop from ARGBEGIN. > > Are you talking about st or some other suckless.org

Re: [dev] Question about arg.h

2013-11-05 Thread Krol, Willem van de
The arguments (argc, argv) _are used, in the for loop from ARGBEGIN. On Tue, Nov 5, 2013 at 7:57 PM, Alexander Huemer wrote: > On Tue, Nov 05, 2013 at 07:23:30PM +0100, Krol, Willem van de wrote: >> Indeed, casting to void doesn't have any effect. The variable doesn't &g

Re: [dev] Question about arg.h

2013-11-05 Thread Krol, Willem van de
Indeed, casting to void doesn't have any effect. The variable doesn't become unusable or something like that (no compiler warning or error). On Tue, Nov 5, 2013 at 7:18 PM, koneu wrote: > Krol, Willem van de wrote: >> Hello, I was reading arg.h, because I want to use it i

[dev] Question about arg.h

2013-11-05 Thread Krol, Willem van de
Hello, I was reading arg.h, because I want to use it in my program, but I couln't figure out why the USED macro was used. Could someone clear that up? Willem

[dev][sbase] mkdir -p doesn't explicitly handle empty path

2013-07-11 Thread Krol, Willem van de
Hello all, If an empty path is specified with mkdir -p (for example, mkdir -p ""), strchr will read beyond the path string. The patch (attached) should fix this. Sincerely, Willem van de Krol mkdir-emptypath.patch Description: Binary data

Re: [dev][sbase] Readlink doesn't null-terminate buf

2013-07-09 Thread Krol, Willem van de
Indeed, I overlooked that. I attached the patched patch. Sincerely, Willem van de Krol On Tue, Jul 9, 2013 at 7:35 PM, MichaƂ Kazior wrote: > On 9 July 2013 19:19, Krol, Willem van de <008...@jfc.nl> wrote: > > Hello all, > > > > The man page of readlink(2) says

[dev][sbase] Readlink doesn't null-terminate buf

2013-07-09 Thread Krol, Willem van de
Hello all, The man page of readlink(2) says it "does not append a null byte to buf". The readlink utility in sbase, however, assumes it does. I attached a patch. Sincerely, Willem van de Krol readlink-nullterminate.diff Description: Binary data

Re: [dev] latest news

2013-06-07 Thread Krol, Willem van de
nice one On Fri, Jun 7, 2013 at 1:20 PM, John Stewart wrote: > > http://www.nsgroupbd.com/it/ycxitqjhujsa?yjo > >

Re: [dev] My dwmstatusbar.c

2012-12-31 Thread Krol, Willem van de
t; > 2012/12/31 Krol, Willem van de <008...@jfc.nl>: > > Here is mine: it waits at most 10 seconds for ALSA events, so the status > bar > > is updated whenever you change the volume. I have the following in my dwm > > config.h: > > > > static Button bu

Re: [dev] My dwmstatusbar.c

2012-12-31 Thread Krol, Willem van de
Here is mine: it waits at most 10 seconds for ALSA events, so the status bar is updated whenever you change the volume. I have the following in my dwm config.h: static Button buttons[] = { ... { ClkStatusText,0, Button1,spawn, {.v = volmutecmd } }, { ClkSt

Re: [dev] surf/tabbed - fullscreen

2012-12-03 Thread Krol, Willem van de
I'm sorry. I thought there was a better method for generating the diff file, but I couldn't find it. Next time I will use git-format-patch. On Mon, Dec 3, 2012 at 9:28 PM, Christoph Lohmann <2...@r-36.net> wrote: > Greetings. > > On Mon, 03 Dec 2012 21:28:19 +0100 &

Re: [dev] surf/tabbed - fullscreen

2012-12-03 Thread Krol, Willem van de
Here are the fullscreen patches for surf and tabbed. If surf is run inside tabbed, tabbed will go fullscreen instead of surf. On Mon, Dec 3, 2012 at 8:00 PM, Christoph Lohmann <2...@r-36.net> wrote: > Greetings. > > On Mon, 03 Dec 2012 20:00:15 +0100 "Krol, Willem va

Re: [dev] surf/tabbed - fullscreen

2012-12-03 Thread Krol, Willem van de
What is the official way of generating a patch file (I'm new to this)? On Mon, Dec 3, 2012 at 8:00 PM, Christoph Lohmann <2...@r-36.net> wrote: > Greetings. > > On Mon, 03 Dec 2012 20:00:15 +0100 "Krol, Willem van de" <008...@jfc.nl> > wrote: > > Hel

[dev] surf/tabbed - fullscreen

2012-12-03 Thread Krol, Willem van de
Hello all, I have implemented fullscreen modus (F11) in surf (when used without tabbed) and tabbed (to fullscreen e.g. surf when using tabbed). Is there anyone interested? Willem