Print this page
7127  remove -Wno-missing-braces from Makefile.uts


 149 static void     tem_safe_align_cursor(struct tem_vt_state *tem);
 150 static void     bit_to_pix4(struct tem_vt_state *tem, uchar_t c,
 151                     text_color_t fg_color, text_color_t bg_color);
 152 static void     bit_to_pix8(struct tem_vt_state *tem, uchar_t c,
 153                     text_color_t fg_color, text_color_t bg_color);
 154 static void     bit_to_pix24(struct tem_vt_state *tem, uchar_t c,
 155                     text_color_t fg_color, text_color_t bg_color);
 156 
 157 /* BEGIN CSTYLED */
 158 /*                                      Bk  Rd  Gr  Br  Bl  Mg  Cy  Wh */
 159 static text_color_t fg_dim_xlate[] = {  1,  5,  3,  7,  2,  6,  4,  8 };
 160 static text_color_t fg_brt_xlate[] = {  9, 13, 11, 15, 10, 14, 12,  0 };
 161 static text_color_t bg_xlate[] = {      1,  5,  3,  7,  2,  6,  4,  0 };
 162 /* END CSTYLED */
 163 
 164 
 165 text_cmap_t cmap4_to_24 = {
 166 /* BEGIN CSTYLED */
 167 /* 0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15
 168   Wh+  Bk   Bl   Gr   Cy   Rd   Mg   Br   Wh   Bk+  Bl+  Gr+  Cy+  Rd+  Mg+  Yw */
 169   0xff,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x40,0x00,0x00,0x00,0xff,0xff,0xff,
 170   0xff,0x00,0x00,0x80,0x80,0x00,0x00,0x80,0x80,0x40,0x00,0xff,0xff,0x00,0x00,0xff,
 171   0xff,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x40,0xff,0x00,0xff,0x00,0xff,0x00
 172 /* END CSTYLED */
 173 };
 174 
 175 #define PIX4TO32(pix4) (pixel32_t)(  \
 176     cmap4_to_24.red[pix4] << 16 |  \
 177     cmap4_to_24.green[pix4] << 8 | \
 178     cmap4_to_24.blue[pix4])
 179 
 180 /*
 181  * Fonts are statically linked with this module. At some point an
 182  * RFE might be desireable to allow dynamic font loading.  The
 183  * original intention to facilitate dynamic fonts can be seen
 184  * by examining the data structures and set_font().  As much of
 185  * the original code is retained but modified to be suited to
 186  * traversing a list of static fonts.
 187  */
 188 extern struct fontlist fonts[];
 189 
 190 #define DEFAULT_FONT_DATA font_data_12x22
 191 




 149 static void     tem_safe_align_cursor(struct tem_vt_state *tem);
 150 static void     bit_to_pix4(struct tem_vt_state *tem, uchar_t c,
 151                     text_color_t fg_color, text_color_t bg_color);
 152 static void     bit_to_pix8(struct tem_vt_state *tem, uchar_t c,
 153                     text_color_t fg_color, text_color_t bg_color);
 154 static void     bit_to_pix24(struct tem_vt_state *tem, uchar_t c,
 155                     text_color_t fg_color, text_color_t bg_color);
 156 
 157 /* BEGIN CSTYLED */
 158 /*                                      Bk  Rd  Gr  Br  Bl  Mg  Cy  Wh */
 159 static text_color_t fg_dim_xlate[] = {  1,  5,  3,  7,  2,  6,  4,  8 };
 160 static text_color_t fg_brt_xlate[] = {  9, 13, 11, 15, 10, 14, 12,  0 };
 161 static text_color_t bg_xlate[] = {      1,  5,  3,  7,  2,  6,  4,  0 };
 162 /* END CSTYLED */
 163 
 164 
 165 text_cmap_t cmap4_to_24 = {
 166 /* BEGIN CSTYLED */
 167 /* 0    1    2    3    4    5    6    7    8    9   10   11   12   13   14   15
 168   Wh+  Bk   Bl   Gr   Cy   Rd   Mg   Br   Wh   Bk+  Bl+  Gr+  Cy+  Rd+  Mg+  Yw */
 169 { 0xff,0x00,0x00,0x00,0x00,0x80,0x80,0x80,0x80,0x40,0x00,0x00,0x00,0xff,0xff,0xff },
 170 { 0xff,0x00,0x00,0x80,0x80,0x00,0x00,0x80,0x80,0x40,0x00,0xff,0xff,0x00,0x00,0xff },
 171 { 0xff,0x00,0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x40,0xff,0x00,0xff,0x00,0xff,0x00 }
 172 /* END CSTYLED */
 173 };
 174 
 175 #define PIX4TO32(pix4) (pixel32_t)(  \
 176     cmap4_to_24.red[pix4] << 16 |  \
 177     cmap4_to_24.green[pix4] << 8 | \
 178     cmap4_to_24.blue[pix4])
 179 
 180 /*
 181  * Fonts are statically linked with this module. At some point an
 182  * RFE might be desireable to allow dynamic font loading.  The
 183  * original intention to facilitate dynamic fonts can be seen
 184  * by examining the data structures and set_font().  As much of
 185  * the original code is retained but modified to be suited to
 186  * traversing a list of static fonts.
 187  */
 188 extern struct fontlist fonts[];
 189 
 190 #define DEFAULT_FONT_DATA font_data_12x22
 191