Re: [dev] cal -5 and -7

From: Antoni V. <antoniv_AT_gmx.com>
Date: Tue, 17 Jan 2017 17:50:42 +0100

I understand the logic, but no clue to set switch_var.

> Sent: Monday, January 16, 2017 at 6:31 AM
> From: "Martin K├╝hne" <mysatyre_AT_gmail.com>
> To: "dev mail list" <dev_AT_suckless.org>
> Subject: Re: [dev] cal -5 and -7
>
> // actually, merge me with '3', right away, too
> case '5':
> case '7':
> nmons = switch_var - '0'; // subtracting '0' is generally safe
> if(--month < 1) {
> month += 12;
> year--;
> }
> break;
>
> cheers!
> mar77i
>
>
Received on Tue Jan 17 2017 - 17:50:42 CET

This archive was generated by hypermail 2.3.0 : Tue Jan 17 2017 - 18:00:08 CET