[dovecot-cvs] dovecot/src/lib str.c,1.7,1.8 str.h,1.3,1.4
cras at procontrol.fi
cras at procontrol.fi
Tue Jan 21 08:45:53 EET 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv24318/lib
Modified Files:
str.c str.h
Log Message:
Added str_free()
Index: str.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/str.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- str.c 5 Jan 2003 13:09:51 -0000 1.7
+++ str.c 21 Jan 2003 06:45:51 -0000 1.8
@@ -38,6 +38,11 @@
return str_new(data_stack_pool, initial_size);
}
+void str_free(string_t *str)
+{
+ buffer_free(str);
+}
+
static int str_add_nul(string_t *str)
{
size_t len;
Index: str.h
===================================================================
RCS file: /home/cvs/dovecot/src/lib/str.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- str.h 5 Jan 2003 13:09:51 -0000 1.3
+++ str.h 21 Jan 2003 06:45:51 -0000 1.4
@@ -3,6 +3,7 @@
string_t *str_new(pool_t pool, size_t initial_size);
string_t *t_str_new(size_t initial_size);
+void str_free(string_t *str);
const char *str_c(string_t *str);
const unsigned char *str_data(const string_t *str);
More information about the dovecot-cvs
mailing list