Skip to contentSkip to conversation

C99 initializers for drivers/video/console

PATCH Applied Art Haas 2 participants 2 messages Jan 2, 2003 – Jan 6, 2003

Subsystems (3)
lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 C99 initializers for drivers/video/console

Hi.

Here are patches for two files in drivers/video/console that switch the files to use C99 initializers. The patches are against 2.5.54.

Art Haas

drivers/video/console/sticon.c renamed from drivers/video/console/sticon.c.old +20 -20
@@ -365,26 +365,26 @@
 }
 
 struct consw sti_con = {
-    con_startup:	sticon_startup,
-    con_init:		sticon_init,
-    con_deinit:		sticon_deinit,
-    con_clear:		sticon_clear,
-    con_putc:		sticon_putc,
-    con_putcs:		sticon_putcs,
-    con_cursor:		sticon_cursor,
-    con_scroll:		sticon_scroll,
-    con_bmove:		sticon_bmove,
-    con_switch:		sticon_switch,
-    con_blank:		sticon_blank,
-    con_font_op:	sticon_font_op,
-    con_set_palette:	sticon_set_palette,
-    con_scrolldelta:	sticon_scrolldelta,
-    con_set_origin:	sticon_set_origin,
-    con_save_screen:	sticon_save_screen, 
-    con_build_attr:	sticon_build_attr,
-    con_invert_region:	sticon_invert_region, 
-    con_screen_pos:	sticon_screen_pos,
-    con_getxy:		sticon_getxy,
+	.con_startup		= sticon_startup,
+	.con_init		= sticon_init,
+	.con_deinit		= sticon_deinit,
+	.con_clear		= sticon_clear,
+	.con_putc		= sticon_putc,
+	.con_putcs		= sticon_putcs,
+	.con_cursor		= sticon_cursor,
+	.con_scroll		= sticon_scroll,
+	.con_bmove		= sticon_bmove,
+	.con_switch		= sticon_switch,
+	.con_blank		= sticon_blank,
+	.con_font_op		= sticon_font_op,
+	.con_set_palette	= sticon_set_palette,
+	.con_scrolldelta	= sticon_scrolldelta,
+	.con_set_origin		= sticon_set_origin,
+	.con_save_screen	= sticon_save_screen, 
+	.con_build_attr		= sticon_build_attr,
+	.con_invert_region	= sticon_invert_region, 
+	.con_screen_pos		= sticon_screen_pos,
+	.con_getxy		= sticon_getxy,
 };
 
 
drivers/video/console/sticore.c renamed from drivers/video/console/sticore.c.old +4 -4
@@ -97,8 +97,8 @@
 }
 
 static const struct sti_conf_flags default_conf_flags = {
-		wait:	STI_WAIT,
-	};
+	.wait	= STI_WAIT,
+};
 
 void
 sti_inq_conf(struct sti_struct *sti)
@@ -118,8 +118,8 @@
 }
 
 static const struct sti_font_flags default_font_flags = {
-		wait:	STI_WAIT,
-		non_text: 0,
+	.wait		= STI_WAIT,
+	.non_text	= 0,
 };
 
 void
Signature · 9 lines
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw
Quoted 3 lines

Here are patches for two files in drivers/video/console that switch the files to use C99 initializers. The patches are against 2.5.54.

Applied.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf