From: "Laszlo Ersek" <lersek@redhat.com>
To: Cloud.Wang@amd.com
Cc: devel@edk2.groups.io
Subject: Re: [edk2-devel] Do latest edk2 build tool support C99 standard
Date: Thu, 19 Sep 2019 22:32:20 +0200 [thread overview]
Message-ID: <b7a61c03-0ca4-3e2a-0fcd-eb7220fd1afc@redhat.com> (raw)
In-Reply-To: <MN2PR12MB353310B2F999A75A1A4B12DB9D890@MN2PR12MB3533.namprd12.prod.outlook.com>
On 09/19/19 04:40, Wang, Cloud wrote:
> Dear Edk2 Base tool owner,
> Do latest edk2 build tool support C99 standard?
C source code in edk2 targets C95 in general. There are a few extensions
that are allowed (such as the __FUNCTION__ macro, "//"-style comments,
...), and there are some surprising restrictions too (no structure
assignment, no division / multiplication / bit-shifting for 64-bit
integers, no initialization except for static storage duration objects,
functions taking variable arguments must be EFIAPI, ...)
There is a coding style spec at
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Specifications#c-coding-standards
Thanks
Laszlo
next prev parent reply other threads:[~2019-09-19 20:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-19 2:40 Do latest edk2 build tool support C99 standard Wang, Cloud
2019-09-19 20:32 ` Laszlo Ersek [this message]
2019-09-19 22:52 ` [edk2-devel] " Wang, Cloud
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=b7a61c03-0ca4-3e2a-0fcd-eb7220fd1afc@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