From eacd378d0b36f57de3efe3ff13949258407bd206 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 25 Oct 2011 21:49:46 -0700 Subject: [PATCH] * syntax.c (ST_COMMENT_STYLE, ST_STRING_STYLE): Revert this part of the change. --- src/ChangeLog | 6 +----- 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 @@ Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. (Fplay_sound_internal): Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. - * syntax.c (ST_COMMENT_STYLE, ST_STRING_STYLE): - In definitions, make it clearer that these values must be out of range - for the respective integer ranges. This fixes a bug with - ST_STRING_STYLE and non-ASCII characters. - (struct lisp_parse_state, find_start_modiff) + * syntax.c (struct lisp_parse_state, find_start_modiff) (Finternal_describe_syntax_value, scan_lists, scan_sexps_forward): (Fparse_partial_sexp): 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 . */ string-ender-char to distinguish comments/strings started by comment_fence and string_fence codes. */ -#define ST_COMMENT_STYLE (SYNTAX_FLAGS_COMMENT_STYLE (~0, ~0) + 1) -#define ST_STRING_STYLE (MAX_CHAR + 1) +#define ST_COMMENT_STYLE (256 + 1) +#define ST_STRING_STYLE (256 + 2) static Lisp_Object Qsyntax_table_p; static Lisp_Object Qsyntax_table, Qscan_error; -- 2.39.2