[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