aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2013-07-10 09:11:09 -0700
committerPaul Eggert2013-07-10 09:11:09 -0700
commit45b683a16c289f67079f60ca1a7bc51d75e8d0c1 (patch)
treebd6f6a6c5f62d47f240137217586ee1f257bc011 /src/ChangeLog
parent500dd7a35d5a4a444f45da036f43cdbbc3bcbbd0 (diff)
downloademacs-45b683a16c289f67079f60ca1a7bc51d75e8d0c1.tar.gz
emacs-45b683a16c289f67079f60ca1a7bc51d75e8d0c1.zip
Syntax cleanup, mostly replacing macros with functions.
This removes the need for the syntax_temp hack. * search.c: Include syntax.h after buffer.h, since syntax.h uses BVAR. * syntax.c (SYNTAX_INLINE): New macro. (SYNTAX_FLAGS_COMSTART_FIRST, SYNTAX_FLAGS_COMSTART_SECOND) (SYNTAX_FLAGS_COMEND_FIRST, SYNTAX_FLAGS_COMEND_SECOND) (SYNTAX_FLAGS_PREFIX, SYNTAX_FLAGS_COMMENT_STYLEB) (SYNTAX_FLAGS_COMMENT_STYLEC, SYNTAX_FLAGS_COMMENT_STYLEC2) (SYNTAX_FLAGS_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_STYLE) (SYNTAX_COMEND_FIRST): Now functions, not macros. (ST_COMMENT_STYLE, ST_STRING_STYLE, INTERVALS_AT_ONCE): Now constants, not macros. (syntax_temp) [!__GNUC__]: Remove. (SYNTAX_PREFIX): Remove; all uses replaced by syntax_prefix_flag_p. (syntax_prefix_flag_p): Move implementation of SYNTAX_PREFIX here. (SET_RAW_SYNTAX_ENTRY, SET_RAW_SYNTAX_ENTRY_RANGE, SYNTAX_MATCH) (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Move here from syntax.h; now functions, not macros. Except for the last function, these are static since only syntax.c uses them. (syntax_multibyte): Rename from SYNTAX_WITH_MULTIBYTE_CHECK. All uses changed. Now a function, not a macro; use this fact to simplify the code. (scan_lists, scan_sexps_forward): Remove workarounds for ancient compiler bugs; no longer relevant. * syntax.h: Use INLINE_HEADER_BEGIN, INLINE_HEADER_END. (SYNTAX_INLINE): New macro. (struct gl_state_s, gl_state): Move earlier, so that it's in scope for the new functions. Use bool for boolean member. (SYNTAX_ENTRY, SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH) (SYNTAX_TABLE_BYTE_TO_CHAR, UPDATE_SYNTAX_TABLE_FORWARD) (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE) (SETUP_BUFFER_SYNTAX_TABLE): Now extern inline functions, not macros. (CURRENT_SYNTAX_TABLE, SYNTAX_ENTRY_INT): Remove; all uses replaced by implementation. (syntax_temp) [!__GNUC__]: Remove decl. (SETUP_SYNTAX_TABLE_FOR_OBJECT): New decl.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dcd7c13b00f..4d2c0409860 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,43 @@
12013-07-10 Paul Eggert <eggert@cs.ucla.edu>
2
3 Syntax cleanup, mostly replacing macros with functions.
4` This removes the need for the syntax_temp hack.
5 * search.c: Include syntax.h after buffer.h, since syntax.h uses BVAR.
6 * syntax.c (SYNTAX_INLINE): New macro.
7 (SYNTAX_FLAGS_COMSTART_FIRST, SYNTAX_FLAGS_COMSTART_SECOND)
8 (SYNTAX_FLAGS_COMEND_FIRST, SYNTAX_FLAGS_COMEND_SECOND)
9 (SYNTAX_FLAGS_PREFIX, SYNTAX_FLAGS_COMMENT_STYLEB)
10 (SYNTAX_FLAGS_COMMENT_STYLEC, SYNTAX_FLAGS_COMMENT_STYLEC2)
11 (SYNTAX_FLAGS_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_STYLE)
12 (SYNTAX_COMEND_FIRST): Now functions, not macros.
13 (ST_COMMENT_STYLE, ST_STRING_STYLE, INTERVALS_AT_ONCE):
14 Now constants, not macros.
15 (syntax_temp) [!__GNUC__]: Remove.
16 (SYNTAX_PREFIX): Remove; all uses replaced by syntax_prefix_flag_p.
17 (syntax_prefix_flag_p): Move implementation of SYNTAX_PREFIX here.
18 (SET_RAW_SYNTAX_ENTRY, SET_RAW_SYNTAX_ENTRY_RANGE, SYNTAX_MATCH)
19 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
20 Move here from syntax.h; now functions, not macros. Except for the
21 last function, these are static since only syntax.c uses them.
22 (syntax_multibyte): Rename from SYNTAX_WITH_MULTIBYTE_CHECK.
23 All uses changed. Now a function, not a macro; use this fact
24 to simplify the code.
25 (scan_lists, scan_sexps_forward): Remove workarounds for ancient
26 compiler bugs; no longer relevant.
27 * syntax.h: Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
28 (SYNTAX_INLINE): New macro.
29 (struct gl_state_s, gl_state): Move earlier, so that it's in scope
30 for the new functions. Use bool for boolean member.
31 (SYNTAX_ENTRY, SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH)
32 (SYNTAX_TABLE_BYTE_TO_CHAR, UPDATE_SYNTAX_TABLE_FORWARD)
33 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
34 (SETUP_BUFFER_SYNTAX_TABLE):
35 Now extern inline functions, not macros.
36 (CURRENT_SYNTAX_TABLE, SYNTAX_ENTRY_INT):
37 Remove; all uses replaced by implementation.
38 (syntax_temp) [!__GNUC__]: Remove decl.
39 (SETUP_SYNTAX_TABLE_FOR_OBJECT): New decl.
40
12013-07-10 Jan Djärv <jan.h.d@swipnet.se> 412013-07-10 Jan Djärv <jan.h.d@swipnet.se>
2 42
3 * emacs.c (main): Fix syntax error. 43 * emacs.c (main): Fix syntax error.