Received: from eggs.gnu.org ([208.118.235.92]:55841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwVmL-0008Cd-Le for qemu-devel@nongnu.org; Sat, 19 Jan 2013 05:36:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TwVmK-0004wD-Gx for qemu-devel@nongnu.org; Sat, 19 Jan 2013 05:36:01 -0500 Received: from isrv.corpit.ru ([86.62.121.231]:56325) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TwVmK-0004vW-AV for qemu-devel@nongnu.org; Sat, 19 Jan 2013 05:36:00 -0500 Message-ID: <50FA7706.5000008@msgid.tls.msk.ru> Date: Sat, 19 Jan 2013 14:35:50 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1358525049-31163-1-git-send-email-armbru@redhat.com> <87vcau5uuw.fsf@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/3] Purge the silly GLib Basic Types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: Markus Armbruster , Anthony Liguori , qemu-devel@nongnu.org 19.01.2013 13:33, Blue Swirl wrote: > On Fri, Jan 18, 2013 at 4:17 PM, Anthony Liguori wrote: >> Markus Armbruster writes: >> >>> See PATCH 1/3 for rationale. >>> >>> Markus Armbruster (3): >>> Purge the silly GLib "Basic Types", except for gboolean >>> Purge GLib's gboolean, it's a trap for the unwary >>> checkpatch: Keep out the GLib silliness we just purged >> >> Changing QEMU code to work around checkpatch's failing is insane. >> >> When interacting with glib, use glib types. Not using those types just >> makes the code more difficult to understand. > > While the types are indeed useless and even cause problems (gboolean), > I agree with Anthony. It's the same as using DWORD for Win32 APIs. Actually it is far from DWORD. DWORD is like uint32_t, where no standard C type matches (since these depends on the word size etc). So in Win32, these DWORDs are justified. With GLib, things are sillier than that, since they redefine _standard_ C types, without gaining anything in portability. /mjt