From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=lb/g0stc; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.74.44, mailfrom: cloud.wang@amd.com) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (NAM01-BN3-obe.outbound.protection.outlook.com [40.107.74.44]) by groups.io with SMTP; Thu, 19 Sep 2019 15:53:00 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XYXLo5CdWD4R19STJSYWh/jALXwZssqQzvT0EWKhiNevvBJSz3R2zA0WJCcUmd6xIjHenlxgdTSVIqH5QGo30Fb/70S8/TTg5OuFF83SyFOSr5E2DQ/vKPDyd78KtymXKetWTYfmJineNY/wY927Oefw7clMC9+DXt/OG7mNfkk+n/YVrrPodTriu/DQ+7g0i+9VszZrDSFIxQaM5/JUunhN5WulKq9I6NFwTbo5Lgb7y+sVhnE5XJNYm5Oxn2MBtzMadNm2uiMBRvIIpQxzggTt5MPygjVY9OylMIrSU55Qu8z1BWq7xDWa4NVcGsndMQEusht7eVi330rBhROMgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p6+inAVeZLyJ+MaroN1jdXjIlSVhePNQiLL7JgwqxwM=; b=TWEIRV+OYipGFXGicxRAEe/XGUoyPc8cCyd8wBxsHxN0HXKdKEedApSKs1D2nULzoI2HMzFSkWGKllhUcBFdSfjSiOWgz17RTG052UWI5TfyUp9gSDDaeecj5EZuY7OLJRYIbQ38s85S+KEn1FTwmShevMfx2hv4E7j8bw3rGTRPX4UGswlUmxw7bMDHbdfQjMMruyuiR4WiTPr79KrCcOGznKVdehaNg2DToi5vQyeLMe2x7pwoEreD6IzZA0+5u6wbpCM8m/xDvw3ZaspGSf15LbbbvrdFkf9hZvB47vZ6EuJKgTV5h6BNDQXLKb6cvQDbrQY757sN2kqnjjv4UA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p6+inAVeZLyJ+MaroN1jdXjIlSVhePNQiLL7JgwqxwM=; b=lb/g0stcaUzwONV5QB6fAfohgesFNZcW28JMRs/xb/A5Ej5CPiaGRqiC5SPzT7KfuCZw3fWnCPT869FKx/8JmE7MP1xg0tiK+NHjhKbTKys55NGPuWG61UBblCA0fsNRQvTBk5Aex93UYPRdATrAp5yV605t7ggfUJQzJYv5Jjc= Received: from MN2PR12MB3533.namprd12.prod.outlook.com (20.179.83.225) by MN2PR12MB3213.namprd12.prod.outlook.com (20.179.81.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2263.17; Thu, 19 Sep 2019 22:52:56 +0000 Received: from MN2PR12MB3533.namprd12.prod.outlook.com ([fe80::4d08:b7d3:2d65:d017]) by MN2PR12MB3533.namprd12.prod.outlook.com ([fe80::4d08:b7d3:2d65:d017%6]) with mapi id 15.20.2284.009; Thu, 19 Sep 2019 22:52:56 +0000 From: "Wang, Cloud" To: Laszlo Ersek CC: "devel@edk2.groups.io" Subject: Re: [edk2-devel] Do latest edk2 build tool support C99 standard Thread-Topic: [edk2-devel] Do latest edk2 build tool support C99 standard Thread-Index: AdVuk3VN2mel++erQfC+iQiOL3IuBAAleBsAAATlC9w= Date: Thu, 19 Sep 2019 22:52:56 +0000 Message-ID: References: , In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Cloud.Wang@amd.com; x-originating-ip: [114.87.30.153] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e30189b0-a2dd-4b42-96b6-08d73d541c9e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600167)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:MN2PR12MB3213; x-ms-traffictypediagnostic: MN2PR12MB3213: x-ms-exchange-purlcount: 2 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-forefront-prvs: 016572D96D x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(346002)(366004)(39860400002)(376002)(136003)(396003)(199004)(189003)(14454004)(86362001)(236005)(66476007)(446003)(81166006)(8676002)(9686003)(76116006)(8936002)(66556008)(14444005)(76176011)(476003)(6306002)(66946007)(52536014)(64756008)(91956017)(54896002)(229853002)(6916009)(55016002)(486006)(6246003)(74316002)(5660300002)(966005)(66446008)(81156014)(7736002)(478600001)(71200400001)(186003)(71190400001)(26005)(25786009)(6436002)(606006)(256004)(99286004)(45080400002)(11346002)(316002)(7696005)(102836004)(53546011)(6116002)(4326008)(33656002)(6506007)(2906002)(66066001)(3846002);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR12MB3213;H:MN2PR12MB3533.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ZiRFOWMzfMe381qpD8qfjn4Ccqjrnc3TR2nhn2nW0aLgUiDL8PK9KKcaUDsFQ0cziOpLI8f+Htal43X3sY5/febjE7yEl71WL4w+x6v7JlaqGonu+U8IwAdzDWx9NngVOFwTDflTqHpfJLoBjzoEFm4+I34rJGsDRDT9KwaNj0ecZe7QBnt8hdK02i8ho4iHQO4WWrxfV4Ct/KMR73dvfnNFutR97TRgldoktkr44dhnkMvbe3/8JwzMsOBbN0Qjxzep4zhrsWj2/mXZT+OtrMYTsc5Y8fBqY8/DysVAoGlZiJHOGz3B6EvCcDRoNBkQJMjt/o9WKHu5xLKn0FjxtgtYQ8Wjtxrd68bvcop9mpA249sDIcd2FiLVB+iI/FdXwzveH8JGualkMgrmkk9SjK1CGAQOtIRUarH2LWVRVos= x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: e30189b0-a2dd-4b42-96b6-08d73d541c9e X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2019 22:52:56.2317 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZtImGadF3Ww48RHyT1hxMEF2snwr/mk1AuqzLcEjq02Ip6hKVZWt4G4FKmbNu0Gh X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3213 Content-Language: zh-CN Content-Type: multipart/alternative; boundary="_000_MN2PR12MB3533D8D5B1EE9D9B3FFAE1A49D890MN2PR12MB3533namp_" --_000_MN2PR12MB3533D8D5B1EE9D9B3FFAE1A49D890MN2PR12MB3533namp_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 RXJzZWssDQogIHRoYW5rcyBmb3IgeW91ciBpbmZvcm1hdGlvbg0KDQq78cihIE91dGxvb2sgZm9y IEFuZHJvaWQ8aHR0cHM6Ly9ha2EubXMvZ2hlaTM2Pg0KDQpfX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fXw0KRnJvbTogTGFzemxvIEVyc2VrIDxsZXJzZWtAcmVkaGF0LmNvbT4NClNlbnQ6 IEZyaWRheSwgU2VwdGVtYmVyI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lYyBhdA0KDQpodHRwczovL2dpdGh1Yi5jb20vdGlhbm9jb3JlL3RpYW5vY29yZS5naXRodWIu aW8vd2lraS9FREstSUktU3BlY2lmaWNhdGlvbnMjYy1jb2Rpbmctc3RhbmRhcmRzDQoNClRoYW5r cw0KTGFzemxvDQo= --_000_MN2PR12MB3533D8D5B1EE9D9B3FFAE1A49D890MN2PR12MB3533namp_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
Ersek,
  thanks for your information

=BB=F1=C8=A1 Outlook for Android

From: Laszlo Ersek <le= rsek@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 stan= dard
 
[CAUTION: External Email]

On 09/19/19 04:40, Wang, Cloud wrote:
> Dear Edk2 Base tool owner,
>      Do latest edk2 build tool support C99 st= andard?

C source code in edk2 targets C95 in general. There are a few extensions that are allowed (such as the __FUNCTION__ macro, "//"-style comm= ents,
...), 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.gith= ub.io/wiki/EDK-II-Specifications#c-coding-standards

Thanks
Laszlo
--_000_MN2PR12MB3533D8D5B1EE9D9B3FFAE1A49D890MN2PR12MB3533namp_--