aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.h
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2011-04-19 13:48:30 +0300
committerEli Zaretskii <[email protected]>2011-04-19 13:48:30 +0300
commit04c569546ad52f6270d8fc6d4aa0750950a0ac05 (patch)
tree8dd6e4d0ef50bd53f7e9c065beea47f717a7e1ba /src/syntax.h
parentbc4f7f3d586a8d32718e27e99226d1b5ab091db5 (diff)
Support buffers > 2GB on 64-bit hosts.
src/insdel.c (make_gap_larger): Remove limitation of buffer size to <= INT_MAX. src/syntax.h (SETUP_SYNTAX_TABLE_FOR_OBJECT): Fix setting of gl_state.e_property when gl_state.object is Qt.
Diffstat (limited to 'src/syntax.h')
-rw-r--r--src/syntax.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/syntax.h b/src/syntax.h
index 9f328f568c..42d689cb96 100644
--- a/src/syntax.h
+++ b/src/syntax.h
@@ -203,7 +203,7 @@ extern char syntax_code_spec[16];
do \
{ \
gl_state.use_global = 0; \
- gl_state.current_syntax_table = BVAR (current_buffer, syntax_table); \
+ gl_state.current_syntax_table = BVAR (current_buffer, syntax_table);\
} while (0)
/* This macro should be called with FROM at the start of forward
@@ -230,7 +230,8 @@ do \
while (0)
/* Same as above, but in OBJECT. If OBJECT is nil, use current buffer.
- If it is t, ignore properties altogether.
+ If it is t (which is only used in fast_c_string_match_ignore_case),
+ ignore properties altogether.
This is meant for regex.c to use. For buffers, regex.c passes arguments
to the UPDATE_SYNTAX_TABLE macros which are relative to BEGV.
@@ -257,7 +258,7 @@ do \
else if (EQ (gl_state.object, Qt)) \
{ \
gl_state.b_property = 0; \
- gl_state.e_property = 1500000000; \
+ gl_state.e_property = MOST_POSITIVE_FIXNUM; \
gl_state.offset = 0; \
} \
else \