aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorPaul Eggert2024-01-20 16:52:31 -0800
committerPaul Eggert2024-01-20 17:28:53 -0800
commitb6ed79b71ccb3df8df05531d473ff9510cf9a39f (patch)
treecea1f448b8e163fc0972b09774f075f9c2277372 /src/image.c
parent0a47a5a4bef0a33c012302346685ecab861cc306 (diff)
downloademacs-b6ed79b71ccb3df8df05531d473ff9510cf9a39f.tar.gz
emacs-b6ed79b71ccb3df8df05531d473ff9510cf9a39f.zip
Be more systematic about parens in C source code
Be more systematic about putting space before paren in calls, and in avoiding unnecessary parentheses in macros. This was partly inspired by my wading through gcc -E output while debugging something else, and seeing too many parens. This patch does not change the generated .o files on my platform.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/image.c b/src/image.c
index 66838adbb2a..41d72964631 100644
--- a/src/image.c
+++ b/src/image.c
@@ -4875,7 +4875,7 @@ xbm_read_bitmap_data (struct frame *f, char *contents, char *end,
4875 while (0) 4875 while (0)
4876 4876
4877#define expect_ident(IDENT) \ 4877#define expect_ident(IDENT) \
4878 if (LA1 == XBM_TK_IDENT && strcmp (buffer, (IDENT)) == 0) \ 4878 if (LA1 == XBM_TK_IDENT && strcmp (buffer, IDENT) == 0) \
4879 match (); \ 4879 match (); \
4880 else \ 4880 else \
4881 goto failure 4881 goto failure
@@ -6154,7 +6154,7 @@ xpm_load_image (struct frame *f,
6154 6154
6155#define expect_ident(IDENT) \ 6155#define expect_ident(IDENT) \
6156 if (LA1 == XPM_TK_IDENT \ 6156 if (LA1 == XPM_TK_IDENT \
6157 && strlen ((IDENT)) == len && memcmp ((IDENT), beg, len) == 0) \ 6157 && strlen (IDENT) == len && memcmp (IDENT, beg, len) == 0) \
6158 match (); \ 6158 match (); \
6159 else \ 6159 else \
6160 goto failure 6160 goto failure