From: Laszlo Ersek <lersek@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [PATCH 2/4] OvmfPkg: add QemuRamfbDxe
Date: Tue, 12 Jun 2018 15:01:12 +0200 [thread overview]
Message-ID: <41879b09-b5e2-744a-ab66-cd48c4ab1750@redhat.com> (raw)
In-Reply-To: <20180612091552.uoo74cvqfzuf364t@sirius.home.kraxel.org>
On 06/12/18 11:15, Gerd Hoffmann wrote:
> Hi,
>
>>> + {
>>> + .HorizontalResolution = 640,
>>> + .VerticalResolution = 480,
>>> + },{
>>> + .HorizontalResolution = 800,
>>> + .VerticalResolution = 600,
>>> + },{
>>> + .HorizontalResolution = 1024,
>>> + .VerticalResolution = 768,
>>> + }
>>> +};
>>
>> (10) In edk2 we cannot use designated initializers. I suggest (for
>> example) assigning these values in the entry point function.
>
> Really? C99 is almost 20 years old now ...
> Are there compilers left without C99 support which edk2 still supports?
Visual Studio has never committed to *full* C99 support, to my
knowledge. I don't know whether VS happens to support designated
initializers specifically; either way, we can't use them in edk2.
... After some googling, I see "signs" that VS >=2013 supports
designated initializers.
However, edk2 targets VS 2003, 2005, 2008, 2010, and 2012 too, before
2013. Refer to "Supported Tool Chains" in
"BaseTools/Conf/tools_def.template".
>
>> In general, in edk2 there are two accepted indentation styles for
>> function calls that extend to multiple lines:
>>
>> variant #1: all arguments (including the first one) on separate lines,
>> with the closing paren also on a separate line:
>>
>> Status = StructPointer->Function (
>> Arg1,
>> Arg2,
>> Arg3
>> );
>
> Hmm, pretty unusual,
Yes, very much. I believe this indentation style might originate from
Windows, but I'm not sure.
> which is bad for editor auto-indent support.
> Anyone knows tricks to teack emacs that style?
I don't use emacs, apologies!
Laszlo
next prev parent reply other threads:[~2018-06-12 13:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-08 11:39 [PATCH 0/4] Add QemuRamfbDxe driver Gerd Hoffmann
2018-06-08 11:39 ` [PATCH 1/4] OvmfPkg: add QEMU_RAMFB_GUID Gerd Hoffmann
2018-06-11 13:06 ` Laszlo Ersek
2018-06-08 11:39 ` [PATCH 2/4] OvmfPkg: add QemuRamfbDxe Gerd Hoffmann
2018-06-10 5:57 ` Ard Biesheuvel
2018-06-11 15:56 ` Laszlo Ersek
2018-06-12 9:15 ` Gerd Hoffmann
2018-06-12 13:01 ` Laszlo Ersek [this message]
2018-06-08 11:39 ` [PATCH 3/4] OvmfPkg: add QemuRamfb to platform console Gerd Hoffmann
2018-06-11 16:24 ` Laszlo Ersek
2018-06-11 16:58 ` Laszlo Ersek
2018-06-08 11:39 ` [PATCH 4/4] ArmVirtPkg: add QemuRamfbDxe Gerd Hoffmann
2018-06-11 16:29 ` Laszlo Ersek
2018-06-11 16:35 ` [PATCH 0/4] Add QemuRamfbDxe driver Laszlo Ersek
2018-06-12 9:21 ` Gerd Hoffmann
2018-06-12 12:53 ` Laszlo Ersek
2018-06-13 7:40 ` Gerd Hoffmann
2018-06-13 16:16 ` Laszlo Ersek
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-list 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=41879b09-b5e2-744a-ab66-cd48c4ab1750@redhat.com \
--to=devel@edk2.groups.io \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox