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/disptab.h | |
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/disptab.h')
-rw-r--r-- | src/disptab.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/disptab.h b/src/disptab.h index d63d19ae754..2080181610a 100644 --- a/src/disptab.h +++ b/src/disptab.h @@ -39,13 +39,13 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ extern Lisp_Object disp_char_vector (struct Lisp_Char_Table *, int); #define DISP_CHAR_VECTOR(dp, c) \ - (ASCII_CHAR_P(c) \ + (ASCII_CHAR_P (c) \ ? (NILP ((dp)->ascii) \ ? (dp)->defalt \ : (SUB_CHAR_TABLE_P ((dp)->ascii) \ ? XSUB_CHAR_TABLE ((dp)->ascii)->contents[c] \ : (dp)->ascii)) \ - : disp_char_vector ((dp), (c))) + : disp_char_vector (dp, c)) /* Defined in window.c. */ extern struct Lisp_Char_Table *window_display_table (struct window *); @@ -78,8 +78,8 @@ extern struct Lisp_Char_Table *buffer_display_table (void); LENGTH), and set G to the final glyph. */ #define GLYPH_FOLLOW_ALIASES(base, length, g) \ do { \ - while (GLYPH_ALIAS_P ((base), (length), (g))) \ - SET_GLYPH_CHAR ((g), XFIXNUM ((base)[GLYPH_CHAR (g)])); \ + while (GLYPH_ALIAS_P (base, length, g)) \ + SET_GLYPH_CHAR (g, XFIXNUM ((base)[GLYPH_CHAR (g)])); \ if (!GLYPH_CHAR_VALID_P (g)) \ SET_GLYPH_CHAR (g, ' '); \ } while (false) |