apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: apr_status_t testing against APR_SUCCESS usage question
Date Mon, 27 Dec 2004 18:13:50 GMT
On Mon, 27 Dec 2004, Garrett Rooney wrote:

> Ok, I think we may be talking about two different cases...
>
> There's the "check if a call returned an error, and if so return that to
> your caller" case, which personally I think is easist to read as:
>
> if (rv)
>    return rv;

No, that's just me mixing up my nots in the version I typed out.  This is
what I meant to type, whereby the two cases I gave *would* be equivalent.
In both cases, I was trying to say "if there was an error, return it to
our caller."

So we just disagree about which style we prefer.  :)

--Cliff

Mime
View raw message