Re: [hackers] [sent] Fix error-messages || FRIGN

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Fri, 12 Aug 2016 14:23:21 +0200

On Fri, Aug 12, 2016 at 11:18:43AM +0200, Markus Teich wrote:
> Hiltjo Posthuma wrote:
> > I (and some others) think we should apply the behaviour change in die() to all
> > other suckless projects that use it for consistency.
>
> Heyho,
>
> yes, I proposed it to FRIGN yesterday as well. The consistency benefit is
> obvious, but there might be another point left to discuss: Should it print the
> newline always or never?
>
> Pro always: Saves two characters in each call.
> Pro never: Same behaviour as the printf-family from libc.
>
> I am pro always due to convenience.
>
> --Markus
>

Here is a patch that improve the error messages a bit more and a patch that checks
a memory allocation case.

The patches are attached.

-- 
Kind regards,
Hiltjo
Received on Fri Aug 12 2016 - 14:23:21 CEST

This archive was generated by hypermail 2.3.0 : Fri Aug 12 2016 - 14:36:18 CEST