diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-28 22:43:05 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2004-06-28 22:43:05 +0000 |
commit | 9e1c564f2c769245d11439dfccd0af05b685e171 (patch) | |
tree | d82dbcdb61b79f90cf08e4e654ef334ccef91f87 /mh | |
parent | 7ecfd2abb3aa7b4c853def9d5ccc57db0ac2b9ae (diff) | |
download | mailutils-9e1c564f2c769245d11439dfccd0af05b685e171.tar.gz mailutils-9e1c564f2c769245d11439dfccd0af05b685e171.tar.bz2 |
Replace iterator_create with list_get_iterator.
Diffstat (limited to 'mh')
-rw-r--r-- | mh/ali.c | 4 | ||||
-rw-r--r-- | mh/mh_alias.y | 20 | ||||
-rw-r--r-- | mh/pick.y | 4 | ||||
-rw-r--r-- | mh/refile.c | 6 |
4 files changed, 17 insertions, 17 deletions
@@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2004 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -121,7 +121,7 @@ ali_print_name_list (list_t list, int off) iterator_t itr; char *item; - iterator_create (&itr, list); + list_get_iterator (list, &itr); if (list_mode) { diff --git a/mh/mh_alias.y b/mh/mh_alias.y index 5f4082ac7..3ef013fbd 100644 --- a/mh/mh_alias.y +++ b/mh/mh_alias.y @@ -1,6 +1,6 @@ %{ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2004 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -61,7 +61,7 @@ ali_list_to_string (list_t *plist) char *p; size_t length = 0; iterator_t itr; - iterator_create (&itr, *plist); + list_get_iterator (*plist, &itr); for (iterator_first (itr); !iterator_is_done (itr); iterator_next(itr)) { char *s; @@ -207,7 +207,7 @@ ali_list_dup (list_t src) if (list_create (&dst)) return NULL; - if (iterator_create (&itr, src)) + if (list_get_iterator (src, &itr)) { list_destroy (&dst); return NULL; @@ -229,7 +229,7 @@ ali_member (list_t list, char *name) iterator_t itr; int found = 0; - if (iterator_create (&itr, list)) + if (list_get_iterator (list, &itr)) return 0; for (iterator_first (itr); !found && !iterator_is_done (itr); iterator_next (itr)) @@ -266,7 +266,7 @@ _insert_list (list_t list, void *prev, list_t new_list) { iterator_t itr; - if (iterator_create (&itr, new_list)) + if (list_get_iterator (new_list, &itr)) return 1; for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) { @@ -288,7 +288,7 @@ alias_expand_list (list_t name_list, iterator_t orig_itr, int *inclusive) { iterator_t itr; - if (iterator_create (&itr, name_list)) + if (list_get_iterator (name_list, &itr)) return 1; for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) { @@ -318,7 +318,7 @@ mh_alias_get_internal (char *name, iterator_t start, list_t *return_list, if (!start) { - if (iterator_create (&itr, alias_list)) + if (list_get_iterator (alias_list, &itr)) return 1; iterator_first (itr); } @@ -368,7 +368,7 @@ mh_alias_get_address (char *name, address_t *paddr, int *incl) return 1; } - if (iterator_create (&itr, list) == 0) + if (list_get_iterator (list, &itr) == 0) { for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) { @@ -416,7 +416,7 @@ mh_alias_get_alias (char *uname, list_t *return_list) iterator_t itr; int rc = 1; - if (iterator_create (&itr, alias_list)) + if (list_get_iterator (alias_list, &itr)) return 1; for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr)) { @@ -441,7 +441,7 @@ mh_alias_enumerate (mh_alias_enumerator_t fun, void *data) iterator_t itr; int rc = 0; - if (iterator_create (&itr, alias_list)) + if (list_get_iterator (alias_list, &itr)) return ; for (iterator_first (itr); rc == 0 && !iterator_is_done (itr); @@ -1,6 +1,6 @@ %{ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 2003 Free Software Foundation, Inc. + Copyright (C) 2003, 2004 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -261,7 +261,7 @@ pick_parse (list_t toklist) return 0; } - if (iterator_create (&iterator, toklist)) + if (list_get_iterator (toklist, &iterator)) return -1; iterator_first (iterator); rc = yyparse (); diff --git a/mh/refile.c b/mh/refile.c index d58635a24..db7bb093f 100644 --- a/mh/refile.c +++ b/mh/refile.c @@ -1,5 +1,5 @@ /* GNU Mailutils -- a suite of utilities for electronic mail - Copyright (C) 2002,2003 Free Software Foundation, Inc. + Copyright (C) 2002,2003,2004 Free Software Foundation, Inc. GNU Mailutils is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -96,7 +96,7 @@ open_folders () exit (1); } - if (iterator_create (&itr, folder_name_list)) + if (list_get_iterator (folder_name_list, &itr)) { mh_error (_("can't create iterator")); exit (1); @@ -121,7 +121,7 @@ enumerate_folders (void (*f) __P((void *, mailbox_t)), void *data) { iterator_t itr; - if (iterator_create (&itr, folder_mbox_list)) + if (list_get_iterator (folder_mbox_list, &itr)) { mh_error (_("can't create iterator")); exit (1); |