I also applied the attached followup patch to clean out macros no longer
used.
From cc13e13d2f2296241cfceffe096bf33559ed6495 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Fri, 28 Feb 2014 22:31:37 -0800
Subject: [PATCH] grep: remove lint
* src/main.c (MBRTOWC, WCRTOMB): Remove no-longer-used macros.
---
src/main.c | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/src/main.c b/src/main.c
index cf59e0e..b07bde8 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1867,16 +1867,6 @@ parse_grep_colors (void)
return;
}
-#define MBRTOWC(pwc, s, n, ps) \
- (MB_CUR_MAX == 1 ? \
- (*(pwc) = btowc (*(unsigned char *) (s)), 1) : \
- mbrtowc ((pwc), (s), (n), (ps)))
-
-#define WCRTOMB(s, wc, ps) \
- (MB_CUR_MAX == 1 ? \
- (*(s) = wctob ((wint_t) (wc)), 1) : \
- wcrtomb ((s), (wc), (ps)))
-
int
main (int argc, char **argv)
{
--
1.8.5.3