From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by groups.io with SMTP; Thu, 19 Sep 2019 13:32:22 -0700 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B9374317529C; Thu, 19 Sep 2019 20:32:21 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-121-45.rdu2.redhat.com [10.10.121.45]) by smtp.corp.redhat.com (Postfix) with ESMTP id 266F55C1D4; Thu, 19 Sep 2019 20:32:20 +0000 (UTC) Subject: Re: [edk2-devel] Do latest edk2 build tool support C99 standard To: Cloud.Wang@amd.com References: From: "Laszlo Ersek" Cc: devel@edk2.groups.io Message-ID: Date: Thu, 19 Sep 2019 22:32:20 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 19 Sep 2019 20:32:21 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit 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