diff options
| author | Paul Eggert | 2011-03-18 21:56:15 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-03-18 21:56:15 -0700 |
| commit | a00924bbcef7baa794fc1368d81bccd8931ae055 (patch) | |
| tree | b8ec96f9722a4cdd3a564a0ad2a1b6f14436d5f9 | |
| parent | 8ff096c18cc923d5f3b936311d837edd91d8fbe9 (diff) | |
| download | emacs-a00924bbcef7baa794fc1368d81bccd8931ae055.tar.gz emacs-a00924bbcef7baa794fc1368d81bccd8931ae055.zip | |
* ftfont.c (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
(OTF_TAG_SYM): Omit macro if not needed.
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/ftfont.c | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 26833532ca4..6ad69b657b8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | 2011-03-19 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-03-19 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness. | 3 | * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness. |
| 4 | (ftfont_otf_capability, ftfont_shape): Omit decls if not needed. | ||
| 5 | (OTF_TAG_SYM): Omit macro if not needed. | ||
| 4 | 6 | ||
| 5 | * xfont.c (xfont_list_family): Mark var as initialized. | 7 | * xfont.c (xfont_list_family): Mark var as initialized. |
| 6 | 8 | ||
diff --git a/src/ftfont.c b/src/ftfont.c index 0c3e7bb6428..5decec16825 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -491,8 +491,12 @@ static int ftfont_get_bitmap (struct font *, unsigned, | |||
| 491 | struct font_bitmap *, int); | 491 | struct font_bitmap *, int); |
| 492 | static int ftfont_anchor_point (struct font *, unsigned, int, | 492 | static int ftfont_anchor_point (struct font *, unsigned, int, |
| 493 | int *, int *); | 493 | int *, int *); |
| 494 | #ifdef HAVE_LIBOTF | ||
| 494 | static Lisp_Object ftfont_otf_capability (struct font *); | 495 | static Lisp_Object ftfont_otf_capability (struct font *); |
| 496 | # ifdef HAVE_M17N_FLT | ||
| 495 | static Lisp_Object ftfont_shape (Lisp_Object); | 497 | static Lisp_Object ftfont_shape (Lisp_Object); |
| 498 | # endif | ||
| 499 | #endif | ||
| 496 | 500 | ||
| 497 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS | 501 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS |
| 498 | static int ftfont_variation_glyphs (struct font *, int c, | 502 | static int ftfont_variation_glyphs (struct font *, int c, |
| @@ -619,6 +623,7 @@ struct OpenTypeSpec | |||
| 619 | (P)[4] = '\0'; \ | 623 | (P)[4] = '\0'; \ |
| 620 | } while (0) | 624 | } while (0) |
| 621 | 625 | ||
| 626 | #ifdef HAVE_LIBOTF | ||
| 622 | #define OTF_TAG_SYM(SYM, TAG) \ | 627 | #define OTF_TAG_SYM(SYM, TAG) \ |
| 623 | do { \ | 628 | do { \ |
| 624 | char str[5]; \ | 629 | char str[5]; \ |
| @@ -626,6 +631,7 @@ struct OpenTypeSpec | |||
| 626 | OTF_TAG_STR (TAG, str); \ | 631 | OTF_TAG_STR (TAG, str); \ |
| 627 | (SYM) = font_intern_prop (str, 4, 1); \ | 632 | (SYM) = font_intern_prop (str, 4, 1); \ |
| 628 | } while (0) | 633 | } while (0) |
| 634 | #endif | ||
| 629 | 635 | ||
| 630 | 636 | ||
| 631 | static struct OpenTypeSpec * | 637 | static struct OpenTypeSpec * |