diff options
| author | Paul Eggert | 2024-01-20 16:52:31 -0800 |
|---|---|---|
| committer | Paul Eggert | 2024-01-20 17:28:53 -0800 |
| commit | b6ed79b71ccb3df8df05531d473ff9510cf9a39f (patch) | |
| tree | cea1f448b8e163fc0972b09774f075f9c2277372 /src/coding.c | |
| parent | 0a47a5a4bef0a33c012302346685ecab861cc306 (diff) | |
| download | emacs-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/coding.c')
| -rw-r--r-- | src/coding.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/coding.c b/src/coding.c index a5bec8b6305..5f3ceab718b 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -314,9 +314,9 @@ static Lisp_Object Vbig5_coding_system; | |||
| 314 | /* ISO2022 section */ | 314 | /* ISO2022 section */ |
| 315 | 315 | ||
| 316 | #define CODING_ISO_INITIAL(coding, reg) \ | 316 | #define CODING_ISO_INITIAL(coding, reg) \ |
| 317 | (XFIXNUM (AREF (AREF (CODING_ID_ATTRS ((coding)->id), \ | 317 | XFIXNUM (AREF (AREF (CODING_ID_ATTRS ((coding)->id), \ |
| 318 | coding_attr_iso_initial), \ | 318 | coding_attr_iso_initial), \ |
| 319 | reg))) | 319 | reg)) |
| 320 | 320 | ||
| 321 | 321 | ||
| 322 | #define CODING_ISO_REQUEST(coding, charset_id) \ | 322 | #define CODING_ISO_REQUEST(coding, charset_id) \ |
| @@ -466,7 +466,7 @@ enum iso_code_class_type | |||
| 466 | #define CODING_CCL_ENCODER(coding) \ | 466 | #define CODING_CCL_ENCODER(coding) \ |
| 467 | AREF (CODING_ID_ATTRS ((coding)->id), coding_attr_ccl_encoder) | 467 | AREF (CODING_ID_ATTRS ((coding)->id), coding_attr_ccl_encoder) |
| 468 | #define CODING_CCL_VALIDS(coding) \ | 468 | #define CODING_CCL_VALIDS(coding) \ |
| 469 | (SDATA (AREF (CODING_ID_ATTRS ((coding)->id), coding_attr_ccl_valids))) | 469 | SDATA (AREF (CODING_ID_ATTRS ((coding)->id), coding_attr_ccl_valids)) |
| 470 | 470 | ||
| 471 | /* Index for each coding category in `coding_categories' */ | 471 | /* Index for each coding category in `coding_categories' */ |
| 472 | 472 | ||
| @@ -4198,12 +4198,12 @@ decode_coding_iso_2022 (struct coding_system *coding) | |||
| 4198 | #define ENCODE_ISO_CHARACTER(charset, c) \ | 4198 | #define ENCODE_ISO_CHARACTER(charset, c) \ |
| 4199 | do { \ | 4199 | do { \ |
| 4200 | unsigned code; \ | 4200 | unsigned code; \ |
| 4201 | CODING_ENCODE_CHAR (coding, dst, dst_end, (charset), (c), code); \ | 4201 | CODING_ENCODE_CHAR (coding, dst, dst_end, charset, c, code); \ |
| 4202 | \ | 4202 | \ |
| 4203 | if (CHARSET_DIMENSION (charset) == 1) \ | 4203 | if (CHARSET_DIMENSION (charset) == 1) \ |
| 4204 | ENCODE_ISO_CHARACTER_DIMENSION1 ((charset), code); \ | 4204 | ENCODE_ISO_CHARACTER_DIMENSION1 (charset, code); \ |
| 4205 | else \ | 4205 | else \ |
| 4206 | ENCODE_ISO_CHARACTER_DIMENSION2 ((charset), code >> 8, code & 0xFF); \ | 4206 | ENCODE_ISO_CHARACTER_DIMENSION2 (charset, code >> 8, code & 0xFF); \ |
| 4207 | } while (0) | 4207 | } while (0) |
| 4208 | 4208 | ||
| 4209 | 4209 | ||