From: Gerd Hoffmann <kraxel@redhat.com>
To: Laszlo Ersek <lersek@redhat.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [PATCH 2/4] OvmfPkg: add QemuRamfbDxe
Date: Tue, 12 Jun 2018 11:15:52 +0200 [thread overview]
Message-ID: <20180612091552.uoo74cvqfzuf364t@sirius.home.kraxel.org> (raw)
In-Reply-To: <dd112b75-999e-6211-8fb9-bd2fbdd0714e@redhat.com>
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?
> 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, which is bad for editor auto-indent support.
Anyone knows tricks to teack emacs that style?
cheers,
Gerd
next prev parent reply other threads:[~2018-06-12 9:15 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 [this message]
2018-06-12 13:01 ` Laszlo Ersek
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=20180612091552.uoo74cvqfzuf364t@sirius.home.kraxel.org \
--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