Re: [AD] Little bug in datedit.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thursday 21 November 2002 18:35, Evert Glebbeek wrote:
> > (3) make 'export' follow the 'save' convention ?
>
> This one, IMO. To me, code that reads
>
> if (!save(file)) {
> 	scream_for_help();
> }

That's (2), isn't it ? Currently save() returns -1 on failure.

> Also, having non-zero as a value to indicate failure keeps the option of
> differentiating between different causes for failure.

Yes, the main advantage of Allegro return value convention.

-- 
Eric Botcazou



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/