aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorStefan Monnier2010-12-10 19:13:08 -0500
committerStefan Monnier2010-12-10 19:13:08 -0500
commit2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch)
treef26dc9f22861dc37610de319d05255de058c221b /src/syntax.c
parent0c747cb143fa227e78f350ac353d703f489209df (diff)
parent175069efeb080517afefdd44a06f7a779ea8c25c (diff)
downloademacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz
emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip
Merge from trunk
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 2f4f5236a40..567f01385d7 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -371,23 +371,10 @@ char_quoted (EMACS_INT charpos, EMACS_INT bytepos)
371 return quoted; 371 return quoted;
372} 372}
373 373
374/* Return the bytepos one character after BYTEPOS.
375 We assume that BYTEPOS is not at the end of the buffer. */
376
377INLINE EMACS_INT
378inc_bytepos (EMACS_INT bytepos)
379{
380 if (NILP (current_buffer->enable_multibyte_characters))
381 return bytepos + 1;
382
383 INC_POS (bytepos);
384 return bytepos;
385}
386
387/* Return the bytepos one character before BYTEPOS. 374/* Return the bytepos one character before BYTEPOS.
388 We assume that BYTEPOS is not at the start of the buffer. */ 375 We assume that BYTEPOS is not at the start of the buffer. */
389 376
390INLINE EMACS_INT 377static INLINE EMACS_INT
391dec_bytepos (EMACS_INT bytepos) 378dec_bytepos (EMACS_INT bytepos)
392{ 379{
393 if (NILP (current_buffer->enable_multibyte_characters)) 380 if (NILP (current_buffer->enable_multibyte_characters))