diff options
| author | Andreas Schwab | 2010-11-20 11:07:00 +0100 |
|---|---|---|
| committer | Andreas Schwab | 2010-11-20 11:07:00 +0100 |
| commit | b65575536f4b2749b72b04b3031e1231dd5fce73 (patch) | |
| tree | aa21ec76540f36808c32c704b55696d03f86e734 /src | |
| parent | e7424f06c93f4017d2a0c2f02d45384414919b1e (diff) | |
| download | emacs-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')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/dispextern.h | 1 | ||||
| -rw-r--r-- | src/dispnew.c | 2 | ||||
| -rw-r--r-- | src/syntax.c | 15 | ||||
| -rw-r--r-- | src/xfaces.c | 2 |
5 files changed, 11 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 21e74725dc0..dfb1b99ef00 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2010-11-20 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * xfaces.c (lookup_face): Make static. | ||
| 4 | * dispnew.c (copy_row_except_pointers): Likewise. | ||
| 5 | * syntax.c (dec_bytepos): Likewise. | ||
| 6 | (inc_bytepos): Remove. | ||
| 7 | * dispextern.h (lookup_face): Remove declaration. | ||
| 8 | |||
| 1 | 2010-11-19 Eli Zaretskii <eliz@gnu.org> | 9 | 2010-11-19 Eli Zaretskii <eliz@gnu.org> |
| 2 | 10 | ||
| 3 | * xdisp.c (set_cursor_from_row): Display cursor after all the | 11 | * 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, | |||
| 3175 | int ascii_face_of_lisp_face (struct frame *, int); | 3175 | int ascii_face_of_lisp_face (struct frame *, int); |
| 3176 | void prepare_face_for_display (struct frame *, struct face *); | 3176 | void prepare_face_for_display (struct frame *, struct face *); |
| 3177 | int xstrcasecmp (const unsigned char *, const unsigned char *); | 3177 | int xstrcasecmp (const unsigned char *, const unsigned char *); |
| 3178 | int lookup_face (struct frame *, Lisp_Object *); | ||
| 3179 | int lookup_named_face (struct frame *, Lisp_Object, int); | 3178 | int lookup_named_face (struct frame *, Lisp_Object, int); |
| 3180 | int lookup_basic_face (struct frame *, int); | 3179 | int lookup_basic_face (struct frame *, int); |
| 3181 | int smaller_face (struct frame *, int, int); | 3180 | 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) | |||
| 1180 | /* Copy glyph row structure FROM to glyph row structure TO, except | 1180 | /* Copy glyph row structure FROM to glyph row structure TO, except |
| 1181 | that glyph pointers in the structures are left unchanged. */ | 1181 | that glyph pointers in the structures are left unchanged. */ |
| 1182 | 1182 | ||
| 1183 | INLINE void | 1183 | static INLINE void |
| 1184 | copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from) | 1184 | copy_row_except_pointers (struct glyph_row *to, struct glyph_row *from) |
| 1185 | { | 1185 | { |
| 1186 | struct glyph *pointers[1 + LAST_AREA]; | 1186 | 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) | |||
| 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)) |
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) | |||
| 4540 | Value is the ID of the face found. If no suitable face is found, | 4540 | Value is the ID of the face found. If no suitable face is found, |
| 4541 | realize a new one. */ | 4541 | realize a new one. */ |
| 4542 | 4542 | ||
| 4543 | INLINE int | 4543 | static INLINE int |
| 4544 | lookup_face (struct frame *f, Lisp_Object *attr) | 4544 | lookup_face (struct frame *f, Lisp_Object *attr) |
| 4545 | { | 4545 | { |
| 4546 | struct face_cache *cache = FRAME_FACE_CACHE (f); | 4546 | struct face_cache *cache = FRAME_FACE_CACHE (f); |