summaryrefslogtreecommitdiff
path: root/libsieve
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-06-28 22:43:05 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-06-28 22:43:05 +0000
commit9e1c564f2c769245d11439dfccd0af05b685e171 (patch)
treed82dbcdb61b79f90cf08e4e654ef334ccef91f87 /libsieve
parent7ecfd2abb3aa7b4c853def9d5ccc57db0ac2b9ae (diff)
downloadmailutils-9e1c564f2c769245d11439dfccd0af05b685e171.tar.gz
mailutils-9e1c564f2c769245d11439dfccd0af05b685e171.tar.bz2
Replace iterator_create with list_get_iterator.
Diffstat (limited to 'libsieve')
-rw-r--r--libsieve/comparator.c6
-rw-r--r--libsieve/prog.c4
-rw-r--r--libsieve/register.c4
-rw-r--r--libsieve/require.c4
-rw-r--r--libsieve/sieve.l4
5 files changed, 11 insertions, 11 deletions
diff --git a/libsieve/comparator.c b/libsieve/comparator.c
index 25336eb24..5c7676bac 100644
--- a/libsieve/comparator.c
+++ b/libsieve/comparator.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -69,7 +69,7 @@ _lookup (list_t list, const char *name)
iterator_t itr;
sieve_comparator_record_t *reg;
- if (!list || iterator_create (&itr, list))
+ if (!list || list_get_iterator (list, &itr))
return NULL;
for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr))
@@ -215,7 +215,7 @@ sieve_match_part_checker (const char *name, list_t tags, list_t args)
int matchtype;
int err = 0;
- if (!tags || iterator_create (&itr, tags))
+ if (!tags || list_get_iterator (tags, &itr))
return 0;
for (iterator_first (itr); !err && !iterator_is_done (itr);
diff --git a/libsieve/prog.c b/libsieve/prog.c
index 5d1c2aeb7..5382bc038 100644
--- a/libsieve/prog.c
+++ b/libsieve/prog.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -149,7 +149,7 @@ sieve_code_command (sieve_register_t *reg, list_t arglist)
if (arglist)
{
- rc = iterator_create (&itr, arglist);
+ rc = list_get_iterator (arglist, &itr);
if (rc)
{
diff --git a/libsieve/register.c b/libsieve/register.c
index 0a50d1084..a08e043a6 100644
--- a/libsieve/register.c
+++ b/libsieve/register.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ reg_lookup (list_t list, const char *name)
iterator_t itr;
sieve_register_t *reg;
- if (!list || iterator_create (&itr, list))
+ if (!list || list_get_iterator (list, &itr))
return NULL;
for (iterator_first (itr); !iterator_is_done (itr); iterator_next (itr))
diff --git a/libsieve/require.c b/libsieve/require.c
index 51a0c7b4c..4018d5596 100644
--- a/libsieve/require.c
+++ b/libsieve/require.c
@@ -1,5 +1,5 @@
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -31,7 +31,7 @@ sieve_require (list_t slist)
int status;
iterator_t itr;
- status = iterator_create (&itr, slist);
+ status = list_get_iterator (slist, &itr);
if (status)
{
sieve_compile_error (sieve_filename, sieve_line_num,
diff --git a/libsieve/sieve.l b/libsieve/sieve.l
index 947cf2035..ca214578c 100644
--- a/libsieve/sieve.l
+++ b/libsieve/sieve.l
@@ -1,6 +1,6 @@
%{
/* GNU Mailutils -- a suite of utilities for electronic mail
- Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -677,7 +677,7 @@ line_finish ()
int length = 0;
char *p;
- if (!string_list || iterator_create (&itr, string_list))
+ if (!string_list || list_get_iterator (string_list, &itr))
return;
/* Count number of characters in the multiline */

Return to:

Send suggestions and report system problems to the System administrator.