Re: [dev] [dwmstatus] Mail counter

2012-12-25 Thread Christoph Lohmann
Greetings. On Wed, 26 Dec 2012 08:29:24 +0100 Chris Hall wrote: > On Sat, Dec 22, 2012 at 9:22 AM, Kurt Van Dijck wrote: > > b) man 3 asprintf > >will eliminate 1/3 of your code > > afaik asprintf is a gnu extension and isn't posix, > although it seems that both uclib and musl support it.

Re: [dev] [dwmstatus] Mail counter

2012-12-25 Thread Chris Hall
On Sat, Dec 22, 2012 at 9:22 AM, Kurt Van Dijck wrote: > b) man 3 asprintf >will eliminate 1/3 of your code afaik asprintf is a gnu extension and isn't posix, although it seems that both uclib and musl support it. ~cjh

Re: [dev] [dwmstatus] Mail counter

2012-12-22 Thread Thuban
Hello, > I would do: > [snip] > @@ -1,7 +1,3 @@ > > + > + if (!argv[1]) { > + fprintf(stderr, "usage: %s DIRECTORY [NAME]\n"); > + exit(1); > + } > Ok, I see. But it doesn't seems easier to use in a big dwmstatus showing other things that new mails. Am I mi

Re: [dev] [dwmstatus] Mail counter

2012-12-22 Thread Kurt Van Dijck
On Sat, Dec 22, 2012 at 09:00:06AM +0100, Thuban wrote: > First of all, thank you for your patience with the beginner I am, > because I still have a lot to learn. > > Concerning French parts, you're right, it's a big mistake. I just forgot > to translate comments. I would do: @@ -1,7 +1,3 @@ -//

Re: [dev] [dwmstatus] Mail counter

2012-12-22 Thread 7heo
On 12/22/2012 09:00 AM, Thuban wrote: First of all, thank you for your patience with the beginner I am, because I still have a lot to learn. Concerning French parts, you're right, it's a big mistake. I just forgot to translate comments. You did a mistake indeed, but it's not where you think it i

Re: [dev] [dwmstatus] Mail counter

2012-12-22 Thread Troels Henriksen
Raphael Proust writes: > On Fri, Dec 21, 2012 at 5:45 PM, Christoph Lohmann <2...@r-36.net> wrote: >> Please, use English while programming. There is no justification for lo‐ >> calized sourcecode. > > I am trying to come up with one, but it's hard. Obfuscation maybe? I can think of two cases, bu

Re: [dev] [dwmstatus] Mail counter

2012-12-22 Thread Raphael Proust
On Fri, Dec 21, 2012 at 5:45 PM, Christoph Lohmann <2...@r-36.net> wrote: > Greetings. > > On Fri, 21 Dec 2012 17:45:28 +0100 Xavier Cartron > wrote: >> Hello, >> I tried my first piece of C into adding a mail counter to dwmstatus. >> The code is added on the wiki [1] >> >> Please correct my mist

Re: [dev] [dwmstatus] Mail counter

2012-12-22 Thread Thuban
First of all, thank you for your patience with the beginner I am, because I still have a lot to learn. Concerning French parts, you're right, it's a big mistake. I just forgot to translate comments. > a) I would have put your username & Mail folder as parameters, >argv[1] & argv[2] or so. I'

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread Kurt Van Dijck
Hi, a) I would have put your username & Mail folder as parameters, argv[1] & argv[2] or so. b) man 3 asprintf will eliminate 1/3 of your code c) you seem to have 2 coding styles mixes together: tabs vs. 4 spaces. I don't care about your French, although I think your comments that are in Fre

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread Sebastian Cato
On Friday, December 21, 2012, wrote: > * s...@alternametz.org 2012-12-21 19:20 >> To me the less in suckless was nearer to the german suffix "los" than to german "weniger" >> but it's maybe a bit idealistic. > > It is. I like dwm, but you guys are getting retarded up in here. Seriously, wtf. Bit

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread stanio
* s...@alternametz.org 2012-12-21 19:20 > To me the less in suckless was nearer to the german suffix "los" than to > german "weniger" > but it's maybe a bit idealistic. It is. “suckless.org software that sucks less” http://suckless.org/philosophy best --s_

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread skls
Christoph Lohmann <2...@r-36.net> wrote: > On Fri, 21 Dec 2012 18:07:18 +0100 Carlos Torres wrote: > > > > Does suckless really mean "stink free" in German? > > No, but »suck« has many meanings in English, which is why it was picked > for the English propaganda. But in German »stinkt weniger«

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread Christoph Lohmann
Greetings. On Fri, 21 Dec 2012 18:07:18 +0100 Carlos Torres wrote: > > names and maybe suckless.org would be »stinkfrei.de« instead, if we > > would assume the world is speaking German. > > > > Does suckless really mean "stink free" in German? No, but »suck« has many meanings in English,

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread Carlos Torres
On Dec 21, 2012 11:53 AM, "Christoph Lohmann" <2...@r-36.net> wrote: > > Greetings. > > On Fri, 21 Dec 2012 17:45:28 +0100 Xavier Cartron wrote: > > Hello, > > I tried my first piece of C into adding a mail counter to dwmstatus. > > The code is added on the wiki [1] > > > > Please correct my mista

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread Christoph Lohmann
Greetings. On Fri, 21 Dec 2012 17:45:28 +0100 Xavier Cartron wrote: > Hello, > I tried my first piece of C into adding a mail counter to dwmstatus. > The code is added on the wiki [1] > > Please correct my mistakes. First thanks for your commit, but you made a big mistake. You assumed we all k