+2022-08-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ maint: parenthesize macro definiens
+ * lib/intprops.h (INT_ADD_OK, INT_SUBTRACT_OK, INT_MULTIPLY_OK):
+ * lib/pipe-filter-ii.c (GetLastError):
+ * lib/thread-optim.h (gl_multithreaded): Parenthesize
+ function-like macro definiens beginning with a unary operator;
+ needed for weird invocations like ‘m (...)[p]’.
+
2022-08-09 Paul Eggert <eggert@cs.ucla.edu>
stdckdint: prefer to intprops when easy
These macros are tuned for B being a constant. */
-#define INT_ADD_OK(a, b, r) ! INT_ADD_WRAPV (a, b, r)
-#define INT_SUBTRACT_OK(a, b, r) ! INT_SUBTRACT_WRAPV (a, b, r)
-#define INT_MULTIPLY_OK(a, b, r) ! INT_MULTIPLY_WRAPV (a, b, r)
+#define INT_ADD_OK(a, b, r) (! INT_ADD_WRAPV (a, b, r))
+#define INT_SUBTRACT_OK(a, b, r) (! INT_SUBTRACT_WRAPV (a, b, r))
+#define INT_MULTIPLY_OK(a, b, r) (! INT_MULTIPLY_WRAPV (a, b, r))
#endif /* _GL_INTPROPS_H */
# define _endthreadex(x) return (x)
# define TerminateThread(h, e) DosKillThread (h->tid)
-# define GetLastError() -1
+# define GetLastError() (-1)
# ifndef ERROR_NO_DATA
# define ERROR_NO_DATA 232
#if HAVE_SYS_SINGLE_THREADED_H /* glibc >= 2.32 */
# include <sys/single_threaded.h>
-# define gl_multithreaded() !__libc_single_threaded
+# define gl_multithreaded() (!__libc_single_threaded)
#else
# define gl_multithreaded() 1
#endif