commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. release-2.2-500-g561a427


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-2.2-500-g561a427
Date: Mon, 05 Dec 2011 23:31:36 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=561a4274464e2e35ce5f696ae6fb9c6431032db1

The branch, master has been updated
       via  561a4274464e2e35ce5f696ae6fb9c6431032db1 (commit)
      from  f606ab21eafbd947113daae4c41328118d51a0eb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 561a4274464e2e35ce5f696ae6fb9c6431032db1
Author: Sergey Poznyakoff <address@hidden>
Date:   Tue Dec 6 00:36:56 2011 +0200

    Use list LIFO access where appropriate.
    
    * libmu_sieve/runtime.c (_mu_sv_instr_push)
    (_mu_sv_instr_pop): Use mu_list_push and mu_list_pop.
    * mail/alias.c (recursive_alias_expand): Likewise.

-----------------------------------------------------------------------

Summary of changes:
 libmu_sieve/runtime.c |    5 ++---
 mail/alias.c          |    4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/libmu_sieve/runtime.c b/libmu_sieve/runtime.c
index 79e625c..6863df8 100644
--- a/libmu_sieve/runtime.c
+++ b/libmu_sieve/runtime.c
@@ -131,7 +131,7 @@ _mu_sv_instr_push (mu_sieve_machine_t mach)
       mu_sieve_error (mach, _("cannot create stack"));
       mu_sieve_abort (mach);
     }
-  mu_list_prepend (mach->stack, (void*) mach->reg);
+  mu_list_push (mach->stack, (void*) mach->reg);
 }
 
 void
@@ -149,8 +149,7 @@ _mu_sv_instr_pop (mu_sieve_machine_t mach)
       mu_sieve_error (mach, _("stack underflow"));
       mu_sieve_abort (mach);
     }
-  mu_list_get (mach->stack, 0, (void **)&mach->reg);
-  mu_list_remove (mach->stack, (void *)mach->reg);
+  mu_list_pop (mach->stack, (void **)&mach->reg);
 }
 
 void
diff --git a/mail/alias.c b/mail/alias.c
index 16e8e8a..beb294b 100644
--- a/mail/alias.c
+++ b/mail/alias.c
@@ -131,9 +131,9 @@ recursive_alias_expand (const char *name, mu_list_t exlist, 
mu_list_t origlist)
       mu_iterator_current (itr, (void **)&word);
       if (mu_list_locate (origlist, word, NULL) == MU_ERR_NOENT)
        {
-         mu_list_prepend (origlist, word);
+         mu_list_push (origlist, word);
          recursive_alias_expand (word, exlist, origlist);
-         mu_list_remove (origlist, word);
+         mu_list_pop (origlist, NULL);
        }
     }
   mu_iterator_destroy (&itr);


hooks/post-receive
-- 
GNU Mailutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]