joes        2003/10/07 11:25:22

  Modified:    src      apreq_parsers.c apreq_parsers.h
  Log:
  Drop useless APREQ_CTX_MAXSIZE.
  
  Revision  Changes    Path
  1.35      +5 -4      httpd-apreq-2/src/apreq_parsers.c
  
  Index: apreq_parsers.c
  ===================================================================
  RCS file: /home/cvs/httpd-apreq-2/src/apreq_parsers.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- apreq_parsers.c   17 Jul 2003 02:59:33 -0000      1.34
  +++ apreq_parsers.c   7 Oct 2003 18:25:22 -0000       1.35
  @@ -106,17 +106,18 @@
                                                     apreq_hook_t *hook,
                                                     void *ctx)
   {
  -    apreq_parser_t *p = apr_palloc(pool, APREQ_CTX_MAXSIZE + sizeof *p);
  +    apreq_parser_t *p = apr_palloc(pool, sizeof *p);
       p->content_type = apr_pstrdup(pool,type);
       p->parser = parser;
       p->hook = hook;
       p->ctx = ctx;
       return p;
   }
  +
   APREQ_DECLARE(apreq_hook_t *) apreq_make_hook(apr_pool_t *pool,
  -                                                APREQ_DECLARE_HOOK(*hook),
  -                                                apreq_hook_t *next,
  -                                                void *ctx)
  +                                              APREQ_DECLARE_HOOK(*hook),
  +                                              apreq_hook_t *next,
  +                                              void *ctx)
   {
       apreq_hook_t *h = apr_palloc(pool, sizeof *h);
       h->hook = hook;
  
  
  
  1.21      +2 -3      httpd-apreq-2/src/apreq_parsers.h
  
  Index: apreq_parsers.h
  ===================================================================
  RCS file: /home/cvs/httpd-apreq-2/src/apreq_parsers.h,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- apreq_parsers.h   15 Jul 2003 16:15:50 -0000      1.20
  +++ apreq_parsers.h   7 Oct 2003 18:25:22 -0000       1.21
  @@ -98,9 +98,8 @@
                                          const apreq_cfg_t *cfg,       \
                                          apr_bucket_brigade *bb)
   
  -#define APREQ_CTX_MAXSIZE  128
  -#define apreq_run_parser(psr,cfg,t,bb) psr->parser(psr,cfg,t,bb)
  -#define apreq_run_hook(h,pool,cfg,bb) h->hook(h,pool,cfg,bb)
  +#define apreq_run_parser(psr,cfg,t,bb) (psr)->parser(psr,cfg,t,bb)
  +#define apreq_run_hook(h,pool,cfg,bb) (h)->hook(h,pool,cfg,bb)
   
   typedef struct apreq_hook_t apreq_hook_t;
   typedef struct apreq_parser_t apreq_parser_t;
  
  
  

Reply via email to