From: Andreas Schwab Date: Sat, 20 Nov 2010 10:07:00 +0000 (+0100) Subject: * src/xfaces.c (lookup_face): Make static. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~45^2~189 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b65575536f4b2749b72b04b3031e1231dd5fce73;p=emacs.git * 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. --- diff --git a/src/ChangeLog b/src/ChangeLog index 21e74725dc0..dfb1b99ef00 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +2010-11-20 Andreas Schwab + + * xfaces.c (lookup_face): Make static. + * dispnew.c (copy_row_except_pointers): Likewise. + * syntax.c (dec_bytepos): Likewise. + (inc_bytepos): Remove. + * dispextern.h (lookup_face): Remove declaration. + 2010-11-19 Eli Zaretskii * xdisp.c (set_cursor_from_row): Display cursor after all the diff --git a/src/dispextern.h b/src/dispextern.h index 0786fff67cc..0030aa8f184 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -3175,7 +3175,6 @@ char *choose_face_font (struct frame *, Lisp_Object *, Lisp_Object, int ascii_face_of_lisp_face (struct frame *, int); void prepare_face_for_display (struct frame *, struct face *); int xstrcasecmp (const unsigned char *, const unsigned char *); -int lookup_face (struct frame *, Lisp_Object *); int lookup_named_face (struct frame *, Lisp_Object, int); int lookup_basic_face (struct frame *, int); int smaller_face (struct frame *, int, int); diff --git a/src/dispnew.c b/src/dispnew.c index 8835b458fd6..5d4ce012530 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -1180,7 +1180,7 @@ swap_glyph_pointers (struct glyph_row *a, struct glyph_row *b) /* Copy glyph row structure FROM to glyph row structure TO, except that glyph pointers in the structures are left unchanged. */ -INLINE void +static INLINE void copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from) { struct glyph *pointers[1 + LAST_AREA]; 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) return quoted; } -/* Return the bytepos one character after BYTEPOS. - We assume that BYTEPOS is not at the end of the buffer. */ - -INLINE EMACS_INT -inc_bytepos (EMACS_INT bytepos) -{ - if (NILP (current_buffer->enable_multibyte_characters)) - return bytepos + 1; - - INC_POS (bytepos); - return bytepos; -} - /* Return the bytepos one character before BYTEPOS. We assume that BYTEPOS is not at the start of the buffer. */ -INLINE EMACS_INT +static INLINE EMACS_INT dec_bytepos (EMACS_INT bytepos) { if (NILP (current_buffer->enable_multibyte_characters)) diff --git a/src/xfaces.c b/src/xfaces.c index 8ef3c81f1a3..5c7cfe67607 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -4540,7 +4540,7 @@ uncache_face (struct face_cache *c, struct face *face) Value is the ID of the face found. If no suitable face is found, realize a new one. */ -INLINE int +static INLINE int lookup_face (struct frame *f, Lisp_Object *attr) { struct face_cache *cache = FRAME_FACE_CACHE (f);