Implement a "line continuation" filter.
Line continuation filter removes from its input any sequence of '\\\n' (a backslash followed by a newline). It is useful for reading various UNIX configuration files. * include/mailutils/filter.h (mu_linecon_filter): New extern. * libmailutils/filter/linecon.c: New file. * libmailutils/filter/Makefile.am (libfilter_la_SOURCES): Add linecon.c * libmailutils/filter/filter.c (mu_filter_get_list): Register mu_linecon_filter. * libmailutils/tests/linecon.at: New test. * libmailutils/tests/Makefile.am (TESTSUITE_AT): Add linecon.at * libmailutils/tests/testsuite.at: Include linecon.at
Showing
7 changed files
with
166 additions
and
0 deletions
libmailutils/filter/linecon.c
0 → 100644
libmailutils/tests/linecon.at
0 → 100644
-
Please register or sign in to post a comment