diff options
| author | Paul Eggert | 2011-10-25 21:49:46 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-10-25 21:49:46 -0700 |
| commit | eacd378d0b36f57de3efe3ff13949258407bd206 (patch) | |
| tree | c0abd682f4b612892fb07e939a813f9137055640 /src | |
| parent | f0ecbca80a004824d74ca9bc8b77cc94b2489b34 (diff) | |
| download | emacs-eacd378d0b36f57de3efe3ff13949258407bd206.tar.gz emacs-eacd378d0b36f57de3efe3ff13949258407bd206.zip | |
* syntax.c (ST_COMMENT_STYLE, ST_STRING_STYLE): Revert this part of the change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/syntax.c | 4 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fb0057770e6..2f825a37971 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -599,11 +599,7 @@ | |||
| 599 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. | 599 | Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. |
| 600 | (Fplay_sound_internal): | 600 | (Fplay_sound_internal): |
| 601 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. | 601 | Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. |
| 602 | * syntax.c (ST_COMMENT_STYLE, ST_STRING_STYLE): | 602 | * syntax.c (struct lisp_parse_state, find_start_modiff) |
| 603 | In definitions, make it clearer that these values must be out of range | ||
| 604 | for the respective integer ranges. This fixes a bug with | ||
| 605 | ST_STRING_STYLE and non-ASCII characters. | ||
| 606 | (struct lisp_parse_state, find_start_modiff) | ||
| 607 | (Finternal_describe_syntax_value, scan_lists, scan_sexps_forward): | 603 | (Finternal_describe_syntax_value, scan_lists, scan_sexps_forward): |
| 608 | (Fparse_partial_sexp): | 604 | (Fparse_partial_sexp): |
| 609 | Don't assume fixnums can fit in int. | 605 | Don't assume fixnums can fit in int. |
diff --git a/src/syntax.c b/src/syntax.c index c76ffd95bf3..7108016f99c 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -94,8 +94,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 94 | string-ender-char to distinguish comments/strings started by | 94 | string-ender-char to distinguish comments/strings started by |
| 95 | comment_fence and string_fence codes. */ | 95 | comment_fence and string_fence codes. */ |
| 96 | 96 | ||
| 97 | #define ST_COMMENT_STYLE (SYNTAX_FLAGS_COMMENT_STYLE (~0, ~0) + 1) | 97 | #define ST_COMMENT_STYLE (256 + 1) |
| 98 | #define ST_STRING_STYLE (MAX_CHAR + 1) | 98 | #define ST_STRING_STYLE (256 + 2) |
| 99 | 99 | ||
| 100 | static Lisp_Object Qsyntax_table_p; | 100 | static Lisp_Object Qsyntax_table_p; |
| 101 | static Lisp_Object Qsyntax_table, Qscan_error; | 101 | static Lisp_Object Qsyntax_table, Qscan_error; |