Received: from eggs.gnu.org ([2001:4830:134:3::10]:45717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UpDt7-0006cj-1F for qemu-devel@nongnu.org; Wed, 19 Jun 2013 04:37:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UpDt5-00008o-Td for qemu-devel@nongnu.org; Wed, 19 Jun 2013 04:37:08 -0400 Message-ID: <51C16DB0.1090905@msgid.tls.msk.ru> Date: Wed, 19 Jun 2013 12:37:04 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1371527137-16949-1-git-send-email-lig.fnst@cn.fujitsu.com> <1371527137-16949-5-git-send-email-lig.fnst@cn.fujitsu.com> In-Reply-To: <1371527137-16949-5-git-send-email-lig.fnst@cn.fujitsu.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH v2 5/5] ui: boolize 'full_screen' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: liguang Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org 18.06.2013 07:45, liguang wrote: [] > -void sdl_display_init(DisplayState *ds, int full_screen, int no_frame); > +void sdl_display_init(DisplayState *ds, bool full_screen, int no_frame); The same applies to no_frame, isn't it? These conversions to bool are like this -- "thankless", because there are so many of them all around, you touch one place and it becomes obvious that nearby places should be touched too. Like this: > --- a/vl.c > +++ b/vl.c > @@ -198,7 +198,7 @@ static int rtc_utc = 1; > static int rtc_date_offset = -1; /* -1 means no change */ > QEMUClock *rtc_clock; > int vga_interface_type = VGA_NONE; > -static int full_screen = 0; > +static bool full_screen = false; > static int no_frame = 0; > int no_quit = 0; This no_quit is bool too... :) But I think _this_ one might be in a separate patch. But it is also display-specific. Besides, I think we should rewamp this display init thing entirely, making displays to be modules and implementing options parsing properly. I think I'll do that today, and will convert these to bools while at it. Thanks, /mjt