diff options
| author | Paul Eggert | 2011-03-18 22:05:19 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-18 22:05:19 -0700 |
| commit | 0248044d313959dd87d64438fa297ca25adfc9ac (patch) | |
| tree | 6268c797dcac1e79c7bad0e513cb286a4304e224 /src | |
| parent | 49eaafbac1695d9244329b3518309bfcc1a98aa4 (diff) | |
| download | emacs-0248044d313959dd87d64438fa297ca25adfc9ac.tar.gz emacs-0248044d313959dd87d64438fa297ca25adfc9ac.zip | |
* xftfont.c (xftfont_shape): Now static, and defined only if needed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/xftfont.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ec9f513b045..ef0999b8454 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-03-19 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-19 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * xftfont.c (xftfont_shape): Now static, and defined only if needed. | ||
| 4 | |||
| 3 | * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness. | 5 | * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness. |
| 4 | (ftfont_otf_capability, ftfont_shape): Omit decls if not needed. | 6 | (ftfont_otf_capability, ftfont_shape): Omit decls if not needed. |
| 5 | (OTF_TAG_SYM): Omit macro if not needed. | 7 | (OTF_TAG_SYM): Omit macro if not needed. |
diff --git a/src/xftfont.c b/src/xftfont.c index 695527c4236..7c8b5dde070 100644 --- a/src/xftfont.c +++ b/src/xftfont.c | |||
| @@ -672,7 +672,8 @@ xftfont_draw (struct glyph_string *s, int from, int to, int x, int y, int with_b | |||
| 672 | return len; | 672 | return len; |
| 673 | } | 673 | } |
| 674 | 674 | ||
| 675 | Lisp_Object | 675 | #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF |
| 676 | static Lisp_Object | ||
| 676 | xftfont_shape (Lisp_Object lgstring) | 677 | xftfont_shape (Lisp_Object lgstring) |
| 677 | { | 678 | { |
| 678 | struct font *font; | 679 | struct font *font; |
| @@ -688,6 +689,7 @@ xftfont_shape (Lisp_Object lgstring) | |||
| 688 | XftUnlockFace (xftfont_info->xftfont); | 689 | XftUnlockFace (xftfont_info->xftfont); |
| 689 | return val; | 690 | return val; |
| 690 | } | 691 | } |
| 692 | #endif | ||
| 691 | 693 | ||
| 692 | static int | 694 | static int |
| 693 | xftfont_end_for_frame (FRAME_PTR f) | 695 | xftfont_end_for_frame (FRAME_PTR f) |