All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: Markus Armbruster <armbru@redhat.com>,
	Anthony Liguori <anthony@codemonkey.ws>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/3] Purge the silly GLib Basic Types
Date: Sat, 19 Jan 2013 14:35:50 +0400	[thread overview]
Message-ID: <50FA7706.5000008@msgid.tls.msk.ru> (raw)
In-Reply-To: <CAAu8pHtHnsuzVHH+hKFrbfp8Km1yiEnxKkJnmVnnkQO_3adP=A@mail.gmail.com>

19.01.2013 13:33, Blue Swirl wrote:
> On Fri, Jan 18, 2013 at 4:17 PM, Anthony Liguori <anthony@codemonkey.ws> wrote:
>> Markus Armbruster <armbru@redhat.com> 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

  reply	other threads:[~2013-01-19 10:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18 16:04 [Qemu-devel] [PATCH 0/3] Purge the silly GLib Basic Types Markus Armbruster
2013-01-18 16:04 ` [Qemu-devel] [PATCH 1/3] Purge the silly GLib "Basic Types", except for gboolean Markus Armbruster
2013-01-18 16:04 ` [Qemu-devel] [PATCH 2/3] Purge GLib's gboolean, it's a trap for the unwary Markus Armbruster
2013-01-18 16:04 ` [Qemu-devel] [PATCH 3/3] checkpatch: Keep out the GLib silliness we just purged Markus Armbruster
2013-01-18 16:17 ` [Qemu-devel] [PATCH 0/3] Purge the silly GLib Basic Types Anthony Liguori
2013-01-19  9:33   ` Blue Swirl
2013-01-19 10:35     ` Michael Tokarev [this message]
2013-01-19 11:20       ` Blue Swirl
2013-01-19 16:47       ` Anthony Liguori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50FA7706.5000008@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=anthony@codemonkey.ws \
    --cc=armbru@redhat.com \
    --cc=blauwirbel@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.