[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: EINVAL vs APR_EINVAL in apr_xlate_open()

From: Justin Erenkrantz <jerenkrantz_at_apache.org>
Date: 2002-07-19 00:13:35 CEST

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 19 00:14:05 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.