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-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 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 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 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 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