Mercurial > emacs
comparison src/syntax.c @ 111640:8bd4a845ba2a
* src/xfaces.c (lookup_face): Make static.
* src/dispnew.c (copy_row_except_pointers): Likewise.
* src/syntax.c (dec_bytepos): Likewise.
(inc_bytepos): Remove.
* src/dispextern.h (lookup_face): Remove declaration.
| author | Andreas Schwab <schwab@linux-m68k.org> |
|---|---|
| date | Sat, 20 Nov 2010 11:07:00 +0100 |
| parents | f28cc7ff91f9 |
| children | ac49e05bfcf2 |
comparison
equal
deleted
inserted
replaced
| 111639:d94e03b64838 | 111640:8bd4a845ba2a |
|---|---|
| 369 | 369 |
| 370 UPDATE_SYNTAX_TABLE (orig); | 370 UPDATE_SYNTAX_TABLE (orig); |
| 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)) |
| 394 return bytepos - 1; | 381 return bytepos - 1; |
| 395 | 382 |
