2 Dec 2010 23:54
[PATCH] embedding a directive within macro arguments is not portable
Urs Janßen <urs <at> tin.org>
2010-12-02 22:54:06 GMT
2010-12-02 22:54:06 GMT
just to be one the safe side === modified file 'src/help.c' --- src/help.c 2010-10-17 19:03:17 +0000 +++ src/help.c 2010-12-02 22:43:05 +0000 <at> <at> -768,16 +768,23 <at> <at> printascii(key[2], func_to_key(GLOBAL_HELP, attachment_keys)), printascii(key[3], func_to_key(GLOBAL_QUIT, attachment_keys))); center_line(line, FALSE, buf); +#ifndef DONT_HAVE_PIPING snprintf(buf, bufs, _(txt_mini_attachment_2), printascii(key[0], func_to_key(ATTACHMENT_SELECT, attachment_keys)), -#ifndef DONT_HAVE_PIPING printascii(key[5], func_to_key(ATTACHMENT_PIPE, attachment_keys)), printascii(key[6], func_to_key(GLOBAL_PIPE, attachment_keys)), + printascii(key[1], func_to_key(ATTACHMENT_SAVE, attachment_keys)), + printascii(key[2], func_to_key(ATTACHMENT_TAG, attachment_keys)), + printascii(key[3], func_to_key(ATTACHMENT_TAG_PATTERN, attachment_keys)), + printascii(key[4], func_to_key(ATTACHMENT_UNTAG, attachment_keys))); +#else + snprintf(buf, bufs, _(txt_mini_attachment_2), + printascii(key[0], func_to_key(ATTACHMENT_SELECT, attachment_keys)), + printascii(key[1], func_to_key(ATTACHMENT_SAVE, attachment_keys)), + printascii(key[2], func_to_key(ATTACHMENT_TAG, attachment_keys)), + printascii(key[3], func_to_key(ATTACHMENT_TAG_PATTERN, attachment_keys)), + printascii(key[4], func_to_key(ATTACHMENT_UNTAG, attachment_keys))); #endif /* !DONT_HAVE_PIPING */ - printascii(key[1], func_to_key(ATTACHMENT_SAVE, attachment_keys)), - printascii(key[2], func_to_key(ATTACHMENT_TAG, attachment_keys)), - printascii(key[3], func_to_key(ATTACHMENT_TAG_PATTERN, attachment_keys)),(Continue reading)
RSS Feed