diff options
| author | Paul Eggert | 2016-12-12 14:27:35 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-12-12 14:27:35 -0800 |
| commit | a41ded87b318ce3cbeb0ba3624bcb83ae3b8a437 (patch) | |
| tree | 02ae5860fd214689f9397c5d4a04dd71b524c3ac /src/ftfont.c | |
| parent | 3c655230d2517d091d6af9835031cbc5d665dccb (diff) | |
| download | emacs-a41ded87b318ce3cbeb0ba3624bcb83ae3b8a437.tar.gz emacs-a41ded87b318ce3cbeb0ba3624bcb83ae3b8a437.zip | |
Use C99 syntax for font drivers
Problem reported by Daniel Colascione in:
http://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00515.html
* src/ftcrfont.c (ftcrfont_driver):
* src/ftfont.c (ftfont_driver):
* src/ftxfont.c (ftxfont_driver):
* src/macfont.m (macfont_driver):
* src/nsfont.m (nsfont_driver):
* src/xfont.c (xfont_driver):
* src/xftfont.c (xftfont_driver):
Use C99 syntax, not the old GNU C syntax.
Diffstat (limited to 'src/ftfont.c')
| -rw-r--r-- | src/ftfont.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/ftfont.c b/src/ftfont.c index 768b524f0a6..bcc10c45fba 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -2697,29 +2697,29 @@ ftfont_combining_capability (struct font *font) | |||
| 2697 | static struct font_driver const ftfont_driver = | 2697 | static struct font_driver const ftfont_driver = |
| 2698 | { | 2698 | { |
| 2699 | /* We can't draw a text without device dependent functions. */ | 2699 | /* We can't draw a text without device dependent functions. */ |
| 2700 | type: LISPSYM_INITIALLY (Qfreetype), | 2700 | .type = LISPSYM_INITIALLY (Qfreetype), |
| 2701 | get_cache: ftfont_get_cache, | 2701 | .get_cache = ftfont_get_cache, |
| 2702 | list: ftfont_list, | 2702 | .list = ftfont_list, |
| 2703 | match: ftfont_match, | 2703 | .match = ftfont_match, |
| 2704 | list_family: ftfont_list_family, | 2704 | .list_family = ftfont_list_family, |
| 2705 | open: ftfont_open, | 2705 | .open = ftfont_open, |
| 2706 | close: ftfont_close, | 2706 | .close = ftfont_close, |
| 2707 | has_char: ftfont_has_char, | 2707 | .has_char = ftfont_has_char, |
| 2708 | encode_char: ftfont_encode_char, | 2708 | .encode_char = ftfont_encode_char, |
| 2709 | text_extents: ftfont_text_extents, | 2709 | .text_extents = ftfont_text_extents, |
| 2710 | get_bitmap: ftfont_get_bitmap, | 2710 | .get_bitmap = ftfont_get_bitmap, |
| 2711 | anchor_point: ftfont_anchor_point, | 2711 | .anchor_point = ftfont_anchor_point, |
| 2712 | #ifdef HAVE_LIBOTF | 2712 | #ifdef HAVE_LIBOTF |
| 2713 | otf_capability: ftfont_otf_capability, | 2713 | .otf_capability = ftfont_otf_capability, |
| 2714 | #endif | 2714 | #endif |
| 2715 | #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF | 2715 | #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF |
| 2716 | shape: ftfont_shape, | 2716 | .shape = ftfont_shape, |
| 2717 | #endif | 2717 | #endif |
| 2718 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS | 2718 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS |
| 2719 | get_variation_glyphs: ftfont_variation_glyphs, | 2719 | .get_variation_glyphs = ftfont_variation_glyphs, |
| 2720 | #endif | 2720 | #endif |
| 2721 | filter_properties: ftfont_filter_properties, | 2721 | .filter_properties = ftfont_filter_properties, |
| 2722 | combining_capability: ftfont_combining_capability, | 2722 | .combining_capability = ftfont_combining_capability, |
| 2723 | }; | 2723 | }; |
| 2724 | 2724 | ||
| 2725 | void | 2725 | void |