summaryrefslogtreecommitdiff
path: root/src/ftxfont.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-12-12 14:27:35 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2016-12-12 14:27:35 -0800
commita41ded87b318ce3cbeb0ba3624bcb83ae3b8a437 (patch)
tree02ae5860fd214689f9397c5d4a04dd71b524c3ac /src/ftxfont.c
parent3c655230d2517d091d6af9835031cbc5d665dccb (diff)
downloademacs-a41ded87b318ce3cbeb0ba3624bcb83ae3b8a437.tar.gz
emacs-a41ded87b318ce3cbeb0ba3624bcb83ae3b8a437.tar.bz2
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/ftxfont.c')
-rw-r--r--src/ftxfont.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/ftxfont.c b/src/ftxfont.c
index d8792ac27bd..d1632e3c9ac 100644
--- a/src/ftxfont.c
+++ b/src/ftxfont.c
@@ -342,31 +342,31 @@ ftxfont_end_for_frame (struct frame *f)
struct font_driver const ftxfont_driver =
{
/* We can't draw a text without device dependent functions. */
- type: LISPSYM_INITIALLY (Qftx),
- get_cache: ftfont_get_cache,
- list: ftxfont_list,
- match: ftxfont_match,
- list_family: ftfont_list_family,
- open: ftxfont_open,
- close: ftxfont_close,
- has_char: ftfont_has_char,
- encode_char: ftfont_encode_char,
- text_extents: ftfont_text_extents,
- draw: ftxfont_draw,
- get_bitmap: ftfont_get_bitmap,
- anchor_point: ftfont_anchor_point,
+ .type = LISPSYM_INITIALLY (Qftx),
+ .get_cache = ftfont_get_cache,
+ .list = ftxfont_list,
+ .match = ftxfont_match,
+ .list_family = ftfont_list_family,
+ .open = ftxfont_open,
+ .close = ftxfont_close,
+ .has_char = ftfont_has_char,
+ .encode_char = ftfont_encode_char,
+ .text_extents = ftfont_text_extents,
+ .draw = ftxfont_draw,
+ .get_bitmap = ftfont_get_bitmap,
+ .anchor_point = ftfont_anchor_point,
#ifdef HAVE_LIBOTF
- otf_capability: ftfont_otf_capability,
+ .otf_capability = ftfont_otf_capability,
#endif
- end_for_frame: ftxfont_end_for_frame,
+ .end_for_frame = ftxfont_end_for_frame,
#if defined HAVE_M17N_FLT && defined HAVE_LIBOTF
- shape: ftfont_shape,
+ .shape = ftfont_shape,
#endif
#ifdef HAVE_OTF_GET_VARIATION_GLYPHS
- get_variation_glyphs: ftfont_variation_glyphs,
+ .get_variation_glyphs = ftfont_variation_glyphs,
#endif
- filter_properties: ftfont_filter_properties,
- combining_capability: ftfont_combining_capability,
+ .filter_properties = ftfont_filter_properties,
+ .combining_capability = ftfont_combining_capability,
};
void