summaryrefslogtreecommitdiffstats
path: root/mutt_idna.c
diff options
context:
space:
mode:
authorAndrew W. Nosenko <awn@bcs.zp.ua>2003-03-05 21:14:46 +0000
committerAndrew W. Nosenko <awn@bcs.zp.ua>2003-03-05 21:14:46 +0000
commit17c061d0c5f728ebd975c9714f8acf3db78e2580 (patch)
tree73f2e304b1851683e4a18ea6b28a4acd28609edd /mutt_idna.c
parent246a91081963fd238c89622a8f63d60680d371e2 (diff)
Fix tlr's pre-processor screw-up.
Diffstat (limited to 'mutt_idna.c')
-rw-r--r--mutt_idna.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mutt_idna.c b/mutt_idna.c
index e4f69a5b..1432375a 100644
--- a/mutt_idna.c
+++ b/mutt_idna.c
@@ -225,14 +225,12 @@ void mutt_env_to_local (ENVELOPE *e)
mutt_addrlist_to_local (e->mail_followup_to);
}
-/*
- * XXX -- this macro produces warnings, but yields the right kind
- * of code when preprocessed. How to fix this *without* typing the same
- * code all over the place?
+/* Note that `a' in the `env->a' expression is macro argument, not
+ * "real" name of an `env' compound member. Real name will be substituted
+ * by preprocessor at the macro-expansion time.
*/
-
#define H_TO_IDNA(a) \
- if (mutt_addrlist_to_idna (env->##a, err) && !e) \
+ if (mutt_addrlist_to_idna (env->a, err) && !e) \
{ \
if (tag) *tag = #a; e = 1; err = NULL; \
}