diff options
| author | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
| commit | 2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch) | |
| tree | f26dc9f22861dc37610de319d05255de058c221b /src/syntax.c | |
| parent | 0c747cb143fa227e78f350ac353d703f489209df (diff) | |
| parent | 175069efeb080517afefdd44a06f7a779ea8c25c (diff) | |
| download | emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip | |
Merge from trunk
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 15 |
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 | |||
| 377 | INLINE EMACS_INT | ||
| 378 | inc_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 | ||
| 390 | INLINE EMACS_INT | 377 | static INLINE EMACS_INT |
| 391 | dec_bytepos (EMACS_INT bytepos) | 378 | dec_bytepos (EMACS_INT bytepos) |
| 392 | { | 379 | { |
| 393 | if (NILP (current_buffer->enable_multibyte_characters)) | 380 | if (NILP (current_buffer->enable_multibyte_characters)) |