You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-commits@quetz.apache.org by gr...@apache.org on 2004/01/14 04:57:46 UTC

cvs commit: httpd-python/src hlistobject.c tableobject.c

grisha      2004/01/13 19:57:46

  Modified:    src      hlistobject.c tableobject.c
  Log:
  A small patch to insure mod_python 3.1.2b compiles with APR 0.9
  and 1.0. It replaces a call to deprecated apr_pool_sub_make with a call
  to apr_pool_create_ex.
  
  Submitted by:	Sergey A. Lipnevich
  
  Revision  Changes    Path
  1.9       +2 -2      httpd-python/src/hlistobject.c
  
  Index: hlistobject.c
  ===================================================================
  RCS file: /home/cvs/httpd-python/src/hlistobject.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- hlistobject.c	11 Dec 2003 03:41:30 -0000	1.8
  +++ hlistobject.c	14 Jan 2004 03:57:46 -0000	1.9
  @@ -82,7 +82,7 @@
           PyErr_NoMemory();
   
       /* XXX need second arg abort function to report mem error */
  -    apr_pool_sub_make(&p, NULL, NULL);
  +    apr_pool_create_ex(&p, NULL, NULL, NULL);
   
       result->pool = p;
       result->head = hlist_copy(p, hle);
  
  
  
  1.30      +3 -3      httpd-python/src/tableobject.c
  
  Index: tableobject.c
  ===================================================================
  RCS file: /home/cvs/httpd-python/src/tableobject.c,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- tableobject.c	11 Dec 2003 03:41:30 -0000	1.29
  +++ tableobject.c	14 Jan 2004 03:57:46 -0000	1.30
  @@ -118,7 +118,7 @@
       apr_pool_t *p;
   
       /* XXX need second arg abort function to report mem error */
  -    apr_pool_sub_make(&p, NULL, NULL);
  +    apr_pool_create_ex(&p, NULL, NULL, NULL);
       
       /* two is a wild guess */
       t = (tableobject *)MpTable_FromTable(apr_table_make(p, 2));
  @@ -1004,7 +1004,7 @@
       if (self != NULL) {
           apr_pool_t *p;
           tableobject *t = (tableobject *)self;
  -        apr_pool_sub_make(&p, NULL, NULL);
  +        apr_pool_create_ex(&p, NULL, NULL, NULL);
           t->pool = p;
           t->table = apr_table_make(p, 2);
       }