diff options
| author | Paul Eggert | 2013-06-20 11:59:08 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-06-20 11:59:08 -0700 |
| commit | 1fc7100890ced39f81a822661439b1f7030df5a1 (patch) | |
| tree | 2da0f1af705674883bd08d80f56c5f630c33acf9 /src/ChangeLog | |
| parent | b932cad7124e7c1a20fc2b127201b7dee15a142f (diff) | |
| download | emacs-1fc7100890ced39f81a822661439b1f7030df5a1.tar.gz emacs-1fc7100890ced39f81a822661439b1f7030df5a1.zip | |
* syntax.c: Integer cleanups.
(SYNTAX_FLAGS_COMMENT_STYLEC): Return a boolean, not 0-or-2.
All uses that need 0-or-2 changed to:
(SYNTAX_FLAGS_COMMENT_STYLEC2): New macro, with the same semantics
as the old SYNTAX_FLAGS_COMMENT_STYLEC.
(struct lisp_parse_state, syntax_prefix_flag_p, update_syntax_table)
(char_quoted, prev_char_comend_first, back_comment)
(Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
(in_classes, forw_comment, scan_lists, scan_sexps_forward):
Use bool for boolean.
(update_syntax_table, skip_chars, skip_syntaxes):
Prefer int to unsigned when either will do.
(back_comment): Return boolean success flag, like forw_comment,
instead of positive-or-minus-1 (which might have overflowed int anyway).
Don't stuff ptrdiff_t into int.
(syntax_spec_code, syntax_code_spec): Now const.
(Fmatching_paren, scan_lists, scan_sexps_forward):
Use enum syntaxcode for syntax code.
(Fmatching_paren): Check that arg is a character, not just an integer.
(Fstring_to_syntax): Don't assume 0377 fits in enum syntaxcode.
(Finternal_describe_syntax_value): Omit no-longer-needed
comparison to 0.
(skip_chars): Use char, not unsigned char, when the distinction
doesn't matter.
(forw_comment, scan_lists): Prefer A |= B to A = A || B when B's cheap.
* bytecode.c (exec_byte_code):
* syntax.c (syntax_spec_code, Fchar_syntax)
(Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
(init_syntax_once):
* syntax.h (SYNTAX_WITH_FLAGS):
Omit unnecessary casts.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2aeccc222cf..4e52f5b2818 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,37 @@ | |||
| 1 | 2013-06-20 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * syntax.c: Integer cleanups. | ||
| 4 | (SYNTAX_FLAGS_COMMENT_STYLEC): Return a boolean, not 0-or-2. | ||
| 5 | All uses that need 0-or-2 changed to: | ||
| 6 | (SYNTAX_FLAGS_COMMENT_STYLEC2): New macro, with the same semantics | ||
| 7 | as the old SYNTAX_FLAGS_COMMENT_STYLEC. | ||
| 8 | (struct lisp_parse_state, syntax_prefix_flag_p, update_syntax_table) | ||
| 9 | (char_quoted, prev_char_comend_first, back_comment) | ||
| 10 | (Finternal_describe_syntax_value, skip_chars, skip_syntaxes) | ||
| 11 | (in_classes, forw_comment, scan_lists, scan_sexps_forward): | ||
| 12 | Use bool for boolean. | ||
| 13 | (update_syntax_table, skip_chars, skip_syntaxes): | ||
| 14 | Prefer int to unsigned when either will do. | ||
| 15 | (back_comment): Return boolean success flag, like forw_comment, | ||
| 16 | instead of positive-or-minus-1 (which might have overflowed int anyway). | ||
| 17 | Don't stuff ptrdiff_t into int. | ||
| 18 | (syntax_spec_code, syntax_code_spec): Now const. | ||
| 19 | (Fmatching_paren, scan_lists, scan_sexps_forward): | ||
| 20 | Use enum syntaxcode for syntax code. | ||
| 21 | (Fmatching_paren): Check that arg is a character, not just an integer. | ||
| 22 | (Fstring_to_syntax): Don't assume 0377 fits in enum syntaxcode. | ||
| 23 | (Finternal_describe_syntax_value): Omit no-longer-needed | ||
| 24 | comparison to 0. | ||
| 25 | (skip_chars): Use char, not unsigned char, when the distinction | ||
| 26 | doesn't matter. | ||
| 27 | (forw_comment, scan_lists): Prefer A |= B to A = A || B when B's cheap. | ||
| 28 | * bytecode.c (exec_byte_code): | ||
| 29 | * syntax.c (syntax_spec_code, Fchar_syntax) | ||
| 30 | (Finternal_describe_syntax_value, skip_chars, skip_syntaxes) | ||
| 31 | (init_syntax_once): | ||
| 32 | * syntax.h (SYNTAX_WITH_FLAGS): | ||
| 33 | Omit unnecessary casts. | ||
| 34 | |||
| 1 | 2013-06-20 Eli Zaretskii <eliz@gnu.org> | 35 | 2013-06-20 Eli Zaretskii <eliz@gnu.org> |
| 2 | 36 | ||
| 3 | * w32fns.c (w32_wnd_proc): Don't compute the header line and mode | 37 | * w32fns.c (w32_wnd_proc): Don't compute the header line and mode |