From 5e2629248fc30f3866c7bf9469bb433d5e869ef5 Mon Sep 17 00:00:00 2001 From: fcambus Date: Mon, 6 Jul 2020 20:19:14 +0000 Subject: [PATCH] Use C99 initializers in wsdisplay_font struct definitions for Spleen kernel fonts. --- sys/dev/wsfont/spleen12x24.h | 22 +++++++++++----------- sys/dev/wsfont/spleen16x32.h | 22 +++++++++++----------- sys/dev/wsfont/spleen32x64.h | 22 +++++++++++----------- sys/dev/wsfont/spleen5x8.h | 22 +++++++++++----------- sys/dev/wsfont/spleen8x16.h | 22 +++++++++++----------- 5 files changed, 55 insertions(+), 55 deletions(-) diff --git a/sys/dev/wsfont/spleen12x24.h b/sys/dev/wsfont/spleen12x24.h index 3c913ef7f082..02813c95948d 100644 --- a/sys/dev/wsfont/spleen12x24.h +++ b/sys/dev/wsfont/spleen12x24.h @@ -1,4 +1,4 @@ -/* $NetBSD: spleen12x24.h,v 1.5 2020/06/21 15:48:17 fcambus Exp $ */ +/* $NetBSD: spleen12x24.h,v 1.6 2020/07/06 20:19:14 fcambus Exp $ */ /* $OpenBSD: spleen12x24.h,v 1.2 2019/03/08 10:53:59 fcambus Exp $ */ /* @@ -30,16 +30,16 @@ static u_char spleen12x24_data[]; struct wsdisplay_font spleen12x24 = { - "Spleen 12x24", /* typeface name */ - ' ', /* firstchar */ - 256 - ' ', /* numchars */ - WSDISPLAY_FONTENC_ISO, /* encoding */ - 12, /* width */ - 24, /* height */ - 2, /* stride */ - WSDISPLAY_FONTORDER_L2R, /* bit order */ - WSDISPLAY_FONTORDER_L2R, /* byte order */ - spleen12x24_data /* data */ + .name = "Spleen 12x24", + .firstchar = ' ', + .numchars = 256 - ' ', + .encoding = WSDISPLAY_FONTENC_ISO, + .fontwidth = 12, + .fontheight = 24, + .stride = 2, + .bitorder = WSDISPLAY_FONTORDER_L2R, + .byteorder = WSDISPLAY_FONTORDER_L2R, + .data = spleen12x24_data }; static u_char spleen12x24_data[] = { diff --git a/sys/dev/wsfont/spleen16x32.h b/sys/dev/wsfont/spleen16x32.h index 34273a1f7cc7..b87500cc20cb 100644 --- a/sys/dev/wsfont/spleen16x32.h +++ b/sys/dev/wsfont/spleen16x32.h @@ -1,4 +1,4 @@ -/* $NetBSD: spleen16x32.h,v 1.4 2020/06/21 15:48:17 fcambus Exp $ */ +/* $NetBSD: spleen16x32.h,v 1.5 2020/07/06 20:19:14 fcambus Exp $ */ /* $OpenBSD: spleen16x32.h,v 1.2 2019/03/08 10:53:59 fcambus Exp $ */ /* @@ -30,16 +30,16 @@ static u_char spleen16x32_data[]; struct wsdisplay_font spleen16x32 = { - "Spleen 16x32", /* typeface name */ - ' ', /* firstchar */ - 256 - ' ', /* numchars */ - WSDISPLAY_FONTENC_ISO, /* encoding */ - 16, /* width */ - 32, /* height */ - 2, /* stride */ - WSDISPLAY_FONTORDER_L2R, /* bit order */ - WSDISPLAY_FONTORDER_L2R, /* byte order */ - spleen16x32_data /* data */ + .name = "Spleen 16x32", + .firstchar = ' ', + .numchars = 256 - ' ', + .encoding = WSDISPLAY_FONTENC_ISO, + .fontwidth = 16, + .fontheight = 32, + .stride = 2, + .bitorder = WSDISPLAY_FONTORDER_L2R, + .byteorder = WSDISPLAY_FONTORDER_L2R, + .data = spleen16x32_data }; static u_char spleen16x32_data[] = { diff --git a/sys/dev/wsfont/spleen32x64.h b/sys/dev/wsfont/spleen32x64.h index 49d1a8603d91..abd549188883 100644 --- a/sys/dev/wsfont/spleen32x64.h +++ b/sys/dev/wsfont/spleen32x64.h @@ -1,4 +1,4 @@ -/* $NetBSD: spleen32x64.h,v 1.5 2020/06/21 15:48:17 fcambus Exp $ */ +/* $NetBSD: spleen32x64.h,v 1.6 2020/07/06 20:19:14 fcambus Exp $ */ /* $OpenBSD: spleen32x64.h,v 1.2 2019/03/08 10:53:59 fcambus Exp $ */ /* @@ -30,16 +30,16 @@ static u_char spleen32x64_data[]; struct wsdisplay_font spleen32x64 = { - "Spleen 32x64", /* typeface name */ - ' ', /* firstchar */ - 256 - ' ', /* numchars */ - WSDISPLAY_FONTENC_ISO, /* encoding */ - 32, /* width */ - 64, /* height */ - 4, /* stride */ - WSDISPLAY_FONTORDER_L2R, /* bit order */ - WSDISPLAY_FONTORDER_L2R, /* byte order */ - spleen32x64_data /* data */ + .name = "Spleen 32x64", + .firstchar = ' ', + .numchars = 256 - ' ', + .encoding = WSDISPLAY_FONTENC_ISO, + .fontwidth = 32, + .fontheight = 64, + .stride = 4, + .bitorder = WSDISPLAY_FONTORDER_L2R, + .byteorder = WSDISPLAY_FONTORDER_L2R, + .data = spleen32x64_data }; static u_char spleen32x64_data[] = { diff --git a/sys/dev/wsfont/spleen5x8.h b/sys/dev/wsfont/spleen5x8.h index 545f4408c4a1..b95ad13ff069 100644 --- a/sys/dev/wsfont/spleen5x8.h +++ b/sys/dev/wsfont/spleen5x8.h @@ -1,4 +1,4 @@ -/* $NetBSD: spleen5x8.h,v 1.5 2020/06/29 09:45:35 fcambus Exp $ */ +/* $NetBSD: spleen5x8.h,v 1.6 2020/07/06 20:19:14 fcambus Exp $ */ /* $OpenBSD: spleen5x8.h,v 1.2 2018/12/02 14:47:23 fcambus Exp $ */ /* @@ -30,16 +30,16 @@ static u_char spleen5x8_data[]; struct wsdisplay_font spleen5x8 = { - "Spleen 5x8", /* typeface name */ - ' ', /* firstchar */ - 128 - ' ', /* numchars */ - WSDISPLAY_FONTENC_ISO, /* encoding */ - 5, /* width */ - 8, /* height */ - 1, /* stride */ - WSDISPLAY_FONTORDER_L2R, /* bit order */ - WSDISPLAY_FONTORDER_L2R, /* byte order */ - spleen5x8_data /* data */ + .name = "Spleen 5x8", + .firstchar = ' ', + .numchars = 128 - ' ', + .encoding = WSDISPLAY_FONTENC_ISO, + .fontwidth = 5, + .fontheight = 8, + .stride = 1, + .bitorder = WSDISPLAY_FONTORDER_L2R, + .byteorder = WSDISPLAY_FONTORDER_L2R, + .data = spleen5x8_data }; static u_char spleen5x8_data[] = { diff --git a/sys/dev/wsfont/spleen8x16.h b/sys/dev/wsfont/spleen8x16.h index 7f82ef7bfe5a..49f0a4de662d 100644 --- a/sys/dev/wsfont/spleen8x16.h +++ b/sys/dev/wsfont/spleen8x16.h @@ -1,4 +1,4 @@ -/* $NetBSD: spleen8x16.h,v 1.3 2020/06/21 15:48:17 fcambus Exp $ */ +/* $NetBSD: spleen8x16.h,v 1.4 2020/07/06 20:19:14 fcambus Exp $ */ /* $OpenBSD: spleen8x16.h,v 1.2 2019/03/08 10:53:59 fcambus Exp $ */ /* @@ -30,16 +30,16 @@ static u_char spleen8x16_data[]; struct wsdisplay_font spleen8x16 = { - "Spleen 8x16", /* typeface name */ - ' ', /* firstchar */ - 256 - ' ', /* numchars */ - WSDISPLAY_FONTENC_ISO, /* encoding */ - 8, /* width */ - 16, /* height */ - 1, /* stride */ - WSDISPLAY_FONTORDER_L2R, /* bit order */ - WSDISPLAY_FONTORDER_L2R, /* byte order */ - spleen8x16_data /* data */ + .name = "Spleen 8x16", + .firstchar = ' ', + .numchars = 256 - ' ', + .encoding = WSDISPLAY_FONTENC_ISO, + .fontwidth = 8, + .fontheight = 16, + .stride = 1, + .bitorder = WSDISPLAY_FONTORDER_L2R, + .byteorder = WSDISPLAY_FONTORDER_L2R, + .data = spleen8x16_data }; static u_char spleen8x16_data[] = {