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/ftcrfont.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/ftcrfont.c')
| -rw-r--r-- | src/ftcrfont.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/ftcrfont.c b/src/ftcrfont.c index f62b40f41c4..67b43b63499 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c | |||
| @@ -280,30 +280,30 @@ ftcrfont_draw (struct glyph_string *s, | |||
| 280 | 280 | ||
| 281 | struct font_driver const ftcrfont_driver = | 281 | struct font_driver const ftcrfont_driver = |
| 282 | { | 282 | { |
| 283 | type: LISPSYM_INITIALLY (Qftcr), | 283 | .type = LISPSYM_INITIALLY (Qftcr), |
| 284 | get_cache: ftfont_get_cache, | 284 | .get_cache = ftfont_get_cache, |
| 285 | list: ftcrfont_list, | 285 | .list = ftcrfont_list, |
| 286 | match: ftcrfont_match, | 286 | .match = ftcrfont_match, |
| 287 | list_family: ftfont_list_family, | 287 | .list_family = ftfont_list_family, |
| 288 | open: ftcrfont_open, | 288 | .open = ftcrfont_open, |
| 289 | close: ftcrfont_close, | 289 | .close = ftcrfont_close, |
| 290 | has_char: ftfont_has_char, | 290 | .has_char = ftfont_has_char, |
| 291 | encode_char: ftfont_encode_char, | 291 | .encode_char = ftfont_encode_char, |
| 292 | text_extents: ftcrfont_text_extents, | 292 | .text_extents = ftcrfont_text_extents, |
| 293 | draw: ftcrfont_draw, | 293 | .draw = ftcrfont_draw, |
| 294 | get_bitmap: ftfont_get_bitmap, | 294 | .get_bitmap = ftfont_get_bitmap, |
| 295 | anchor_point: ftfont_anchor_point, | 295 | .anchor_point = ftfont_anchor_point, |
| 296 | #ifdef HAVE_LIBOTF | 296 | #ifdef HAVE_LIBOTF |
| 297 | otf_capability: ftfont_otf_capability, | 297 | .otf_capability = ftfont_otf_capability, |
| 298 | #endif | 298 | #endif |
| 299 | #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF | 299 | #if defined HAVE_M17N_FLT && defined HAVE_LIBOTF |
| 300 | shape: ftfont_shape, | 300 | .shape = ftfont_shape, |
| 301 | #endif | 301 | #endif |
| 302 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS | 302 | #ifdef HAVE_OTF_GET_VARIATION_GLYPHS |
| 303 | get_variation_glyphs: ftfont_variation_glyphs, | 303 | .get_variation_glyphs = ftfont_variation_glyphs, |
| 304 | #endif | 304 | #endif |
| 305 | filter_properties: ftfont_filter_properties, | 305 | .filter_properties = ftfont_filter_properties, |
| 306 | combining_capability: ftfont_combining_capability, | 306 | .combining_capability = ftfont_combining_capability, |
| 307 | }; | 307 | }; |
| 308 | 308 | ||
| 309 | void | 309 | void |