Skip to content

Commit

Permalink
Merge commit 'svn/trunk'
Browse files Browse the repository at this point in the history
  • Loading branch information
ykaliuta committed Sep 21, 2008
2 parents a9464c0 + dd81e1b commit 11d7029
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
2008-09-21 Andrey Slusar <[email protected]>

* src/include/prototypes.h:
* src/common/textlist.c(tl_for_each): New function tl_for_each()
(patch from Yauheni Kaliuta).
* src/gate/ftn2rfc.c: A hack to encode all non-7bit headers
(patch from Yauheni Kaliuta).
* acinclude.m4: Update to new aclocal(tested on 1.10.1).
Expand Down
14 changes: 14 additions & 0 deletions src/common/textlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,17 @@ int tl_copy(Textlist *dst, Textlist *src)
tl_append(dst, p->line);
return OK;
}

int tl_for_each(Textlist *list, int (*func)(Textline *, void *), void *arg)
{
Textline *p;
int r;

for(p = list->first; p != NULL; p = p->next)
{
r = func(p, arg);
if (r != OK)
return r;
}
return OK;
}
1 change: 1 addition & 0 deletions src/include/prototypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ void tl_addtl (Textlist *, Textlist *);
Textline* tl_get (Textlist *, char *, int);
char* tl_get_str (Textlist *, char *, int);
int tl_copy (Textlist *, Textlist *);
int tl_for_each (Textlist *, int (*)(Textline *, void *), void *);
/* tick.c */
int copy_file (char *, char *, char *);
void tick_init (Tick *);
Expand Down

0 comments on commit 11d7029

Please sign in to comment.