Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libcurses __NEED_ERASE - don't shadow __LDATA::attr with...



details:   https://anonhg.NetBSD.org/src/rev/9bf30c859025
branches:  trunk
changeset: 970180:9bf30c859025
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Mar 15 01:12:47 2020 +0000

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

diffstat:

 lib/libcurses/curses_private.h |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 686e0dc552b2 -r 9bf30c859025 lib/libcurses/curses_private.h
--- a/lib/libcurses/curses_private.h    Sat Mar 14 22:26:39 2020 +0000
+++ b/lib/libcurses/curses_private.h    Sun Mar 15 01:12:47 2020 +0000
@@ -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 @@
 
 /* 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. */



Home | Main Index | Thread Index | Old Index