[dovecot-cvs] dovecot/src/lib array.h,1.11,1.12

cras at dovecot.org cras at dovecot.org
Tue Jun 28 20:06:40 EEST 2005


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

Modified Files:
	array.h 
Log Message:
Renamed array_modifyable_*() functions. I could never remember how they were
named.



Index: array.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/array.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- array.h	26 Apr 2005 18:36:05 -0000	1.11
+++ array.h	28 Jun 2005 17:06:38 -0000	1.12
@@ -197,7 +197,7 @@
 #endif
 
 static inline void *
-_array_modifyable_idx(array_t *array, unsigned int idx)
+_array_idx_modifyable(array_t *array, unsigned int idx)
 {
 	size_t pos;
 
@@ -210,10 +210,10 @@
 	return buffer_get_space_unsafe(array->buffer, pos, array->element_size);
 }
 #ifndef ARRAY_TYPE_CHECKS
-#  define array_modifyable_idx _array_modifyable_idx
+#  define array_idx_modifyable _array_idx_modifyable
 #else
-#  define array_modifyable_idx(array, count) \
-	(typeof(*array ## __ ## type))_array_modifyable_idx(array, count)
+#  define array_idx_modifyable(array, count) \
+	(typeof(*array ## __ ## type))_array_idx_modifyable(array, count)
 #endif
 
 static inline void
@@ -238,7 +238,7 @@
 #endif
 
 static inline void *
-_array_modifyable_append(array_t *array)
+_array_append_space(array_t *array)
 {
 	void *data;
 
@@ -247,14 +247,14 @@
 	return data;
 }
 #ifndef ARRAY_TYPE_CHECKS
-#  define array_modifyable_append _array_modifyable_append
+#  define array_append_space _array_append_space
 #else
-#  define array_modifyable_append(array) \
-	(typeof(*array ## __ ## type))_array_modifyable_append(array)
+#  define array_append_space(array) \
+	(typeof(*array ## __ ## type))_array_append_space(array)
 #endif
 
 static inline void *
-_array_modifyable_insert(array_t *array, unsigned int idx)
+_array_insert_space(array_t *array, unsigned int idx)
 {
 	void *data;
 	size_t pos;
@@ -268,10 +268,10 @@
 	return data;
 }
 #ifndef ARRAY_TYPE_CHECKS
-#  define array_modifyable_insert _array_modifyable_insert
+#  define array_insert_space _array_insert_space
 #else
-#  define array_modifyable_insert(array, idx) \
-	(typeof(*array ## __ ## type))_array_modifyable_insert(array, idx)
+#  define array_insert_space(array, idx) \
+	(typeof(*array ## __ ## type))_array_insert_space(array, idx)
 #endif
 
 static inline unsigned int



More information about the dovecot-cvs mailing list