summaryrefslogtreecommitdiff
path: root/src/xfont.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/xfont.c
parent3c655230d2517d091d6af9835031cbc5d665dccb (diff)
downloademacs-a41ded87b318ce3cbeb0ba3624bcb83ae3b8a437.tar.gz
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/xfont.c')
-rw-r--r--src/xfont.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/xfont.c b/src/xfont.c
index 5999f6715cc..09ca6282c7f 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -1079,19 +1079,19 @@ xfont_check (struct frame *f, struct font *font)
struct font_driver const xfont_driver =
{
- type: LISPSYM_INITIALLY (Qx),
- get_cache: xfont_get_cache,
- list: xfont_list,
- match: xfont_match,
- list_family: xfont_list_family,
- open: xfont_open,
- close: xfont_close,
- prepare_face: xfont_prepare_face,
- has_char: xfont_has_char,
- encode_char: xfont_encode_char,
- text_extents: xfont_text_extents,
- draw: xfont_draw,
- check: xfont_check,
+ .type = LISPSYM_INITIALLY (Qx),
+ .get_cache = xfont_get_cache,
+ .list = xfont_list,
+ .match = xfont_match,
+ .list_family = xfont_list_family,
+ .open = xfont_open,
+ .close = xfont_close,
+ .prepare_face = xfont_prepare_face,
+ .has_char = xfont_has_char,
+ .encode_char = xfont_encode_char,
+ .text_extents = xfont_text_extents,
+ .draw = xfont_draw,
+ .check = xfont_check,
};
void