[edk2-devel] Do latest edk2 build tool support C99 standard

Wang, Cloud Cloud.Wang at amd.com
Thu Sep 19 22:52:56 UTC 2019


Ersek,
  thanks for your information

获取 Outlook for Android<https://aka.ms/ghei36>

________________________________
From: Laszlo Ersek <lersek at redhat.com>
Sent: Friday, September 20, 2019 4:32:20 AM
To: Wang, Cloud <Cloud.Wang at amd.com>
Cc: devel at edk2.groups.io <devel at edk2.groups.io>
Subject: Re: [edk2-devel] Do latest edk2 build tool support C99 standard

[CAUTION: External Email]

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

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#47681): https://edk2.groups.io/g/devel/message/47681
Mute This Topic: https://groups.io/mt/34195857/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20190919/44090ad4/attachment.htm>


More information about the edk2-devel-archive mailing list