diff src/lib-storage/mailbox-list.c @ 6940:414c9d631a81 HEAD

Replaced t_push/t_pop calls with T_FRAME*() macros.
author Timo Sirainen <tss@iki.fi>
date Wed, 05 Dec 2007 17:47:44 +0200
parents 337e6a9a2959
children a1e271317eb2
line wrap: on
line diff
--- a/src/lib-storage/mailbox-list.c	Wed Dec 05 17:47:19 2007 +0200
+++ b/src/lib-storage/mailbox-list.c	Wed Dec 05 17:47:44 2007 +0200
@@ -464,7 +464,8 @@
 	}
 }
 
-void mailbox_list_iter_update(struct mailbox_list_iterate_context *ctx,
+static void
+mailbox_list_iter_update_real(struct mailbox_list_iterate_context *ctx,
 			      struct mailbox_tree_context *tree_ctx,
 			      struct imap_match_glob *glob, bool update_only,
 			      bool match_parents, const char *name)
@@ -482,7 +483,6 @@
 	always_flags = MAILBOX_SUBSCRIBED;
 	add_matched = TRUE;
 
-	t_push();
 	for (;;) {
 		created = FALSE;
 		match = imap_match(glob, name);
@@ -524,7 +524,17 @@
 		create_flags &= ~MAILBOX_NOCHILDREN;
 		always_flags = MAILBOX_CHILDREN | MAILBOX_CHILD_SUBSCRIBED;
 	}
-	t_pop();
+}
+
+void mailbox_list_iter_update(struct mailbox_list_iterate_context *ctx,
+			      struct mailbox_tree_context *tree_ctx,
+			      struct imap_match_glob *glob, bool update_only,
+			      bool match_parents, const char *name)
+{
+	T_FRAME(
+		mailbox_list_iter_update_real(ctx, tree_ctx, glob, update_only,
+					      match_parents, name);
+	);
 }
 
 bool mailbox_list_name_is_too_large(const char *name, char sep)