You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Marc Slemko <ma...@znep.com> on 2001/07/30 02:36:01 UTC

APR_INCOMPLETE

apr_errno.h says:

 * APR_INCOMPLETE     The character conversion stopped because of an 
 *                    incomplete character or shift sequence at the end 
 *                    of the input buffer.

This doesn't seem to be a good description of what it is used for
in reality...  since it seems to be used for functions that can return
partially filled structures.  

Could someone who is positive of what it is used for maybe update this
comment to make it less misleading?


Re: APR_INCOMPLETE

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Ryan Bloom wrote:
> 
> The comment is correct.  If we are using it in more places than apr_getopt, then it is
> a bug.

It is used in apr-iconv (for wrong byte sequence in input buffer). That looks
correct for me.

>  Those other uses should have their own status value.  We are trying to not
> have one status value have multiple definitions based on context.
> 
> Ryan
> 
> On Sunday 29 July 2001 17:36, Marc Slemko wrote:
> > apr_errno.h says:
> >
> >  * APR_INCOMPLETE     The character conversion stopped because of an
> >  *                    incomplete character or shift sequence at the end
> >  *                    of the input buffer.
> >
> > This doesn't seem to be a good description of what it is used for
> > in reality...  since it seems to be used for functions that can return
> > partially filled structures.
> >
> > Could someone who is positive of what it is used for maybe update this
> > comment to make it less misleading?
> 
> --
> 
> _____________________________________________________________________________
> Ryan Bloom                              rbb@apache.org
> Covalent Technologies                   rbb@covalent.net
> -----------------------------------------------------------------------------

Re: APR_INCOMPLETE

Posted by Ryan Bloom <rb...@covalent.net>.
The comment is correct.  If we are using it in more places than apr_getopt, then it is
a bug.  Those other uses should have their own status value.  We are trying to not
have one status value have multiple definitions based on context.

Ryan

On Sunday 29 July 2001 17:36, Marc Slemko wrote:
> apr_errno.h says:
>
>  * APR_INCOMPLETE     The character conversion stopped because of an
>  *                    incomplete character or shift sequence at the end
>  *                    of the input buffer.
>
> This doesn't seem to be a good description of what it is used for
> in reality...  since it seems to be used for functions that can return
> partially filled structures.
>
> Could someone who is positive of what it is used for maybe update this
> comment to make it less misleading?

-- 

_____________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
Covalent Technologies			rbb@covalent.net
-----------------------------------------------------------------------------