Ersek,
  thanks for your information

»ρΘ‘ Outlook for Android


From: Laszlo Ersek <lersek@redhat.com>
Sent: Friday, September 20, 2019 4:32:20 AM
To: Wang, Cloud <Cloud.Wang@amd.com>
Cc: devel@edk2.groups.io <devel@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