apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@apache.org>
Subject Re: EINVAL vs APR_EINVAL in apr_xlate_open()
Date Thu, 18 Jul 2002 22:13:35 GMT
On Thu, Jul 18, 2002 at 04:20:58PM -0500, Karl Fogel wrote:
> Is there any reason to prefer EINVAL to APR_EINVAL, or vice versa, in
> apr_xlate_open()?  I was just about to go document this case in
> apr-util/include/apr_xlate.h, when the question occurred to me...

In APR calls, if EINVAL is produced, it should use APR_EINVAL.

And, for checking for error, the caller should use
APR_STATUS_IS_EINVAL(s).  -- justin

Mime
View raw message