You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by Ryan Bloom <rb...@covalent.net> on 2002/06/02 09:42:30 UTC
RE: cvs commit: apr-util/include apr_buckets.h
> From: jwoolley@apache.org [mailto:jwoolley@apache.org]
>
>
> - int is_metadata;
> + enum {
> + /** This bucket type represents actual data to send to the
> client. */
> + APR_BUCKET_DATA = 0,
> + /** This bucket type represents metadata. */
> + APR_BUCKET_METADATA = 1
> + } is_metadata;
By turning this into an enum, you have removed the ability to extend
this field.
Ryan
RE: cvs commit: apr-util/include apr_buckets.h
Posted by Cliff Woolley <jw...@virginia.edu>.
On Sun, 2 Jun 2002, Ryan Bloom wrote:
> This field can only have two values, DATA or METADATA. ... If this is an
> integer, then anybody can extend it simply by choosing another int
> value.
The field can still have whatever values anybody wants. It's just that
only two of them have names.
--Cliff
RE: cvs commit: apr-util/include apr_buckets.h
Posted by Ryan Bloom <rb...@covalent.net>.
> From: Aaron Bannert [mailto:aaron@clove.org]
>
> On Sun, Jun 02, 2002 at 12:42:30AM -0700, Ryan Bloom wrote:
> > > From: jwoolley@apache.org [mailto:jwoolley@apache.org]
> > >
> > >
> > > - int is_metadata;
> > > + enum {
> > > + /** This bucket type represents actual data to send to
the
> > > client. */
> > > + APR_BUCKET_DATA = 0,
> > > + /** This bucket type represents metadata. */
> > > + APR_BUCKET_METADATA = 1
> > > + } is_metadata;
> >
> > By turning this into an enum, you have removed the ability to extend
> > this field.
>
> In what way?
This field can only have two values, DATA or METADATA. It is unlikely
that we will add more, unless somebody tells us that they need it, but
it will take a release to get that change into their hands. If this is
an integer, then anybody can extend it simply by choosing another int
value.
Ryan
Re: cvs commit: apr-util/include apr_buckets.h
Posted by Aaron Bannert <aa...@clove.org>.
On Sun, Jun 02, 2002 at 12:42:30AM -0700, Ryan Bloom wrote:
> > From: jwoolley@apache.org [mailto:jwoolley@apache.org]
> >
> >
> > - int is_metadata;
> > + enum {
> > + /** This bucket type represents actual data to send to the
> > client. */
> > + APR_BUCKET_DATA = 0,
> > + /** This bucket type represents metadata. */
> > + APR_BUCKET_METADATA = 1
> > + } is_metadata;
>
> By turning this into an enum, you have removed the ability to extend
> this field.
In what way?
-aaron
RE: cvs commit: apr-util/include apr_buckets.h
Posted by Cliff Woolley <jw...@virginia.edu>.
On Sun, 2 Jun 2002, Ryan Bloom wrote:
> > + enum {
> > + /** This bucket type represents actual data to send to the
> client. */
> > + APR_BUCKET_DATA = 0,
> > + /** This bucket type represents metadata. */
> > + APR_BUCKET_METADATA = 1
> > + } is_metadata;
>
> By turning this into an enum, you have removed the ability to extend
> this field.
Um, in what way? Isn't enum==int except with specified identifiers
getting specified values?
--Cliff