__NEED_ERASE - don't shadow __LDATA::attr with macro parameter name.

This commit is contained in:
uwe 2020-03-15 01:12:47 +00:00
parent ae92cb1896
commit 878e2e095f

View File

@ -1,4 +1,4 @@
/* $NetBSD: curses_private.h,v 1.72 2020/03/13 02:57:26 roy Exp $ */
/* $NetBSD: curses_private.h,v 1.73 2020/03/15 01:12:47 uwe Exp $ */
/*-
* Copyright (c) 1998-2000 Brett Lymn
@ -339,14 +339,14 @@ void __CTRACE(int, const char *, ...) __attribute__((__format__(__printf__, 2,
/* Common erase logic */
#ifdef HAVE_WCHAR
#define __NEED_ERASE(sp, bch, attr) \
((sp)->ch != (bch) || \
((sp)->attr & WA_ATTRIBUTES) != (attr) || \
(sp)->nsp != NULL || \
WCOL(*sp) < 0)
#define __NEED_ERASE(_sp, _bch, _battr) \
((_sp)->ch != (_bch) || \
((_sp)->attr & WA_ATTRIBUTES) != (_battr) || \
(_sp)->nsp != NULL || \
WCOL(*_sp) < 0)
#else
#define __NEED_ERASE(sp, bch, attr) \
((sp)->ch != (bch) || (sp)->attr != (attr))
#define __NEED_ERASE(_sp, _bch, _battr) \
((_sp)->ch != (_bch) || (_sp)->attr != (_battr))
#endif
/* Private functions. */