diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2024-01-20 16:52:31 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2024-01-20 17:28:53 -0800 |
commit | b6ed79b71ccb3df8df05531d473ff9510cf9a39f (patch) | |
tree | cea1f448b8e163fc0972b09774f075f9c2277372 /src/dispnew.c | |
parent | 0a47a5a4bef0a33c012302346685ecab861cc306 (diff) | |
download | emacs-b6ed79b71ccb3df8df05531d473ff9510cf9a39f.tar.gz |
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/dispnew.c')
-rw-r--r-- | src/dispnew.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index d0f259eef6c..c204a9dbf1b 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -134,8 +134,8 @@ static struct frame *frame_matrix_frame; static int window_to_frame_vpos (struct window *, int); static int window_to_frame_hpos (struct window *, int); -#define WINDOW_TO_FRAME_VPOS(W, VPOS) window_to_frame_vpos ((W), (VPOS)) -#define WINDOW_TO_FRAME_HPOS(W, HPOS) window_to_frame_hpos ((W), (HPOS)) +#define WINDOW_TO_FRAME_VPOS(W, VPOS) window_to_frame_vpos (W, VPOS) +#define WINDOW_TO_FRAME_HPOS(W, HPOS) window_to_frame_hpos (W, HPOS) /* One element of the ring buffer containing redisplay history information. */ @@ -5240,7 +5240,7 @@ count_match (struct glyph *str1, struct glyph *end1, struct glyph *str2, struct /* Char insertion/deletion cost vector, from term.c */ #ifndef HAVE_ANDROID -#define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_TOTAL_COLS ((f))]) +#define char_ins_del_cost(f) (&char_ins_del_vector[FRAME_TOTAL_COLS (f)]) #endif |