apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Woolley <jwool...@virginia.edu>
Subject Re: proposal to add apr_check_dir_empty() to APR
Date Tue, 02 Jul 2002 20:59:48 GMT
On Tue, 2 Jul 2002, Aaron Bannert wrote:

> Non-APR functions that want to use APR's apr_status_t codes don't have
> the luxury of being able to add another code, so given the performance
> tradeoff maybe this is the way to go...

Well, they *can*, but APR doesn't know what to do with them.  That's not a
problem in general -- apr-util does it for example.  The part that strikes
me as silly is having this massive explosion of status codes when all
we're trying to return is "true" or "false".  Why not just provide for
that in APR, leaving 3rd party status codes for things that REALLY need
them (actual unusual conditions, errors, statuses, whatever).  Why make
people add their own "APR_FALSE"?


View raw message