aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorAndreas Schwab2010-11-20 11:07:00 +0100
committerAndreas Schwab2010-11-20 11:07:00 +0100
commitb65575536f4b2749b72b04b3031e1231dd5fce73 (patch)
treeaa21ec76540f36808c32c704b55696d03f86e734 /src/syntax.c
parente7424f06c93f4017d2a0c2f02d45384414919b1e (diff)
downloademacs-b65575536f4b2749b72b04b3031e1231dd5fce73.tar.gz
emacs-b65575536f4b2749b72b04b3031e1231dd5fce73.zip
* 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.
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))