You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Greg Stein <gs...@lyra.org> on 2000/07/13 23:55:45 UTC
Re: cvs commit: apache-2.0/src/lib/apr/buckets ap_eos_buf.c ap_buf.c ap_mmap_buf.c ap_rmem_buf.c ap_rwmem_buf.c apr_buf.h
You don't need those functions since a NULL in getstr/getlen will return the
right values.
Cheers,
-g
On Thu, Jul 13, 2000 at 09:48:39PM -0000, rbb@locus.apache.org wrote:
>...
> static const char * eos_get_str(ap_bucket *e)
> {
> return NULL;
> }
>
> static int eos_get_len(ap_bucket *e)
> {
> return 0;
> }
>
> APR_EXPORT(ap_bucket *) ap_eos_create(void)
> {
> ap_bucket *newbuf;
>
> newbuf = malloc(sizeof(*newbuf));
>
> newbuf->color = AP_BUCKET_eos;
> newbuf->getstr = eos_get_str;
> newbuf->getlen = eos_get_len;
> newbuf->free = NULL;
> newbuf->data = NULL;
>
> return newbuf;
> }
--
Greg Stein, http://www.lyra.org/