diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-11-28 14:20:54 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2007-11-28 14:20:54 +0000 |
commit | a3a31df1d1c1606c5e20409289d1161bdcc5dfd9 (patch) | |
tree | 5a98d6bf0b90f004b445874d363fbd0246bbd849 /mimeview | |
parent | 0c81afb7bef1b3c182dae633c73ec65694225aaf (diff) | |
download | mailutils-a3a31df1d1c1606c5e20409289d1161bdcc5dfd9.tar.gz mailutils-a3a31df1d1c1606c5e20409289d1161bdcc5dfd9.tar.bz2 |
* include/mailutils/cfg.h, mailbox/cfg_lexer.c,
mailbox/cfg_parser.y (mu_cfg_tree_t):
New data type.
(mu_cfg_perror_t): Remove
(mu_cfg_parse): Change prototype.
(mu_cfg_perror): Change type.
(mu_cfg_format_error): New function.
(mu_cfg_destroy_tree): Change signature.
(mu_cfg_callback_t): Take mu_debug_t as its first argument,
instead of mu_cfg_locus_t. The mu_debug_t is to be used for error
reporting and debugging diagnostics. The cfg_lexer is responsible
for storing the necessary locus data into it before calling
callbacks.
(mu_cfg_section_fp): Take an additional argument.
(mu_cfg_scan_tree): Simplified prototype. The mu_cfg_tree_t passed
as its first argument already contains all necessary data that
were passed as arguments previously.
(mu_parse_config): First two args are consts.
* include/mailutils/libcfg.h, imap4d/imap4d.c, libcfg/auth.c,
libcfg/common.c, libcfg/ldap.c, libcfg/sieve.c, libcfg/sql.c,
maidag/maidag.c, mail.local/main.c, mimeview/mimeview.c,
pop3d/pop3d.c, sieve/sieve.c: Reflect changes to the cfg
framework.
* mailbox/debug.c (mu_debug_vprintf): Make sure the locus info is
formatted on the first call.
Diffstat (limited to 'mimeview')
-rw-r--r-- | mimeview/mimeview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mimeview/mimeview.c b/mimeview/mimeview.c index 59a856b81..0fd766bef 100644 --- a/mimeview/mimeview.c +++ b/mimeview/mimeview.c @@ -66,7 +66,7 @@ char *mimeview_file; /* Name of the file to view */ FILE *mimeview_fp; /* Its descriptor */ static void -set_debug_flags (mu_cfg_locus_t *locus, char *arg) +set_debug_flags (mu_debug_t debug, char *arg) { for (; *arg; arg++) { @@ -147,9 +147,9 @@ static struct argp argp = { static int -cb_debug (mu_cfg_locus_t *locus, void *data, char *arg) +cb_debug (mu_debug_t debug, void *data, char *arg) { - set_debug_flags (locus, arg); + set_debug_flags (debug, arg); return 0; } |