[dovecot-cvs] dovecot/src/lib strfuncs.c, 1.55, 1.56 strfuncs.h, 1.28, 1.29

tss-movial at dovecot.org tss-movial at dovecot.org
Mon Jun 12 11:36:55 EEST 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv104

Modified Files:
	strfuncs.c strfuncs.h 
Log Message:
Added p_strsplit_free()



Index: strfuncs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- strfuncs.c	27 Feb 2006 16:14:55 -0000	1.55
+++ strfuncs.c	12 Jun 2006 08:36:51 -0000	1.56
@@ -591,6 +591,12 @@
 	return _strsplit(pool, data, separators, TRUE);
 }
 
+void p_strsplit_free(pool_t pool, char **arr)
+{
+	p_free(pool, arr[0]);
+	p_free(pool, arr);
+}
+
 unsigned int strarray_length(const char *const *arr)
 {
 	unsigned int count;

Index: strfuncs.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/strfuncs.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- strfuncs.h	27 Feb 2006 16:14:55 -0000	1.28
+++ strfuncs.h	12 Jun 2006 08:36:51 -0000	1.29
@@ -65,9 +65,9 @@
 const char **t_strsplit(const char *data, const char *separators);
 /* like p_strsplit(), but treats multiple adjacent separators as a single
    separator. */
-char **p_strsplit_spaces(pool_t pool, const char *data,
-			 const char *separators);
+char **p_strsplit_spaces(pool_t pool, const char *data, const char *separators);
 const char **t_strsplit_spaces(const char *data, const char *separators);
+void p_strsplit_free(pool_t pool, char **arr);
 
 const char *dec2str(uintmax_t number);
 



More information about the dovecot-cvs mailing list