[dovecot-cvs] dovecot/src/lib mempool-alloconly.c,1.17,1.18 mempool-datastack.c,1.6,1.7 mempool-system.c,1.10,1.11 mempool.h,1.9,1.10

cras at procontrol.fi cras at procontrol.fi
Sat Jan 11 17:09:37 EET 2003


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv26383

Modified Files:
	mempool-alloconly.c mempool-datastack.c mempool-system.c 
	mempool.h 
Log Message:
Added alloconly_pool field for checking if pool supports free()



Index: mempool-alloconly.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mempool-alloconly.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- mempool-alloconly.c	10 Jan 2003 20:58:28 -0000	1.17
+++ mempool-alloconly.c	11 Jan 2003 15:09:35 -0000	1.18
@@ -76,7 +76,9 @@
 
 	pool_alloconly_realloc,
 
-	pool_alloconly_clear
+	pool_alloconly_clear,
+
+	TRUE
 };
 
 pool_t pool_alloconly_create(const char *name, size_t size)

Index: mempool-datastack.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mempool-datastack.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mempool-datastack.c	10 Jan 2003 20:58:28 -0000	1.6
+++ mempool-datastack.c	11 Jan 2003 15:09:35 -0000	1.7
@@ -45,7 +45,9 @@
 
 	pool_data_stack_realloc,
 
-	pool_data_stack_clear
+	pool_data_stack_clear,
+
+	TRUE
 };
 
 pool_t data_stack_pool = &static_data_stack_pool;

Index: mempool-system.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mempool-system.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- mempool-system.c	10 Jan 2003 21:31:01 -0000	1.10
+++ mempool-system.c	11 Jan 2003 15:09:35 -0000	1.11
@@ -47,7 +47,9 @@
 
 	pool_system_realloc,
 
-	pool_system_clear
+	pool_system_clear,
+
+        FALSE
 };
 
 pool_t system_pool = &static_system_pool;

Index: mempool.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/mempool.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- mempool.h	10 Jan 2003 20:58:28 -0000	1.9
+++ mempool.h	11 Jan 2003 15:09:35 -0000	1.10
@@ -25,6 +25,8 @@
 	/* Frees all the memory in pool. NOTE: system_pool doesn't support
 	   this and crashes if it's used */
 	void (*clear)(pool_t pool);
+
+	unsigned int alloconly_pool:1;
 };
 
 /* system_pool uses calloc() + realloc() + free() */




More information about the dovecot-cvs mailing list