public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Do latest edk2 build tool support C99 standard
@ 2019-09-19  2:40 Wang, Cloud
  2019-09-19 20:32 ` [edk2-devel] " Laszlo Ersek
  0 siblings, 1 reply; 3+ messages in thread
From: Wang, Cloud @ 2019-09-19  2:40 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 84 bytes --]

Dear Edk2 Base tool owner,
     Do latest edk2 build tool support C99 standard?


[-- Attachment #2: Type: text/html, Size: 2001 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] Do latest edk2 build tool support C99 standard
  2019-09-19  2:40 Do latest edk2 build tool support C99 standard Wang, Cloud
@ 2019-09-19 20:32 ` Laszlo Ersek
  2019-09-19 22:52   ` Wang, Cloud
  0 siblings, 1 reply; 3+ messages in thread
From: Laszlo Ersek @ 2019-09-19 20:32 UTC (permalink / raw)
  To: Cloud.Wang; +Cc: devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] Do latest edk2 build tool support C99 standard
  2019-09-19 20:32 ` [edk2-devel] " Laszlo Ersek
@ 2019-09-19 22:52   ` Wang, Cloud
  0 siblings, 0 replies; 3+ messages in thread
From: Wang, Cloud @ 2019-09-19 22:52 UTC (permalink / raw)
  To: Laszlo Ersek; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]

Ersek,
  thanks for your information

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

________________________________
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

[-- Attachment #2: Type: text/html, Size: 2543 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-19 22:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-19  2:40 Do latest edk2 build tool support C99 standard Wang, Cloud
2019-09-19 20:32 ` [edk2-devel] " Laszlo Ersek
2019-09-19 22:52   ` Wang, Cloud

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox