From: Ben Pfaff <blp@gnu.org>
Date: Sun, 5 Oct 2008 21:56:22 +0000 (-0700)
Subject: Parenthesize more defensively in macro definition.
X-Git-Tag: v0.7.1~50^2~32
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d47845b9f9242c1aaf33d2aa28b8b132d194566;p=pspp-builds.git

Parenthesize more defensively in macro definition.
---

diff --git a/src/libpspp/ll.h b/src/libpspp/ll.h
index 96ef9a20..65ecf55f 100644
--- a/src/libpspp/ll.h
+++ b/src/libpspp/ll.h
@@ -336,9 +336,9 @@ struct ll *ll_find_partition (const struct ll *r0, const struct ll *r1,
 #define ll_tail__(STRUCT, MEMBER, LIST)                         \
         ll_data__ (ll_tail (LIST), STRUCT, MEMBER, LIST)
 #define ll_next__(DATA, STRUCT, MEMBER, LIST)                           \
-        ll_data__ (ll_next (&DATA->MEMBER), STRUCT, MEMBER, LIST)
+        ll_data__ (ll_next (&(DATA)->MEMBER), STRUCT, MEMBER, LIST)
 #define ll_prev__(DATA, STRUCT, MEMBER, LIST)                           \
-        ll_data__ (ll_prev (&DATA->MEMBER), STRUCT, MEMBER, LIST)
+        ll_data__ (ll_prev (&(DATA)->MEMBER), STRUCT, MEMBER, LIST)
 
 /* Inline functions. */