<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#ffffff"><div><div style="font-family: Calibri,sans-serif; font-size: 11pt;">As well as pre-C99 compilers, there are also C++ compilers to think of.<br><br>It may be easier to identify the likely features we want to avoid and regex find them in the test suite. Combined with code reviews and the fact that we can change syntax in the header files whenever we want without impact (and if that's not true, let's definitely add checks for those cases), I think we can achieve this without excessive effort.<br><br>(And I'm fairly sure MSVC 9.0 in C mode is the most regressive compiler we have available ;) )<br><br>Cheers,<br>Steve<br><br>Top-posted from my Windows Phone</div></div><div dir="ltr"><hr><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">From: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:larry@hastings.org">Larry Hastings</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Sent: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">1/17/2017 17:02</span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">To: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;"><a href="mailto:python-dev@python.org">Python-Dev</a></span><br><span style="font-family: Calibri,sans-serif; font-size: 11pt; font-weight: bold;">Subject: </span><span style="font-family: Calibri,sans-serif; font-size: 11pt;">Re: [Python-Dev] Can we use "designated initializer" widely incoremodules?</span><br><br></div>
<div class="moz-text-html" lang="x-unicode">
<div class="moz-cite-prefix"><br>
On 01/17/2017 04:48 PM, INADA Naoki wrote:<br>
</div>
<blockquote cite="mid:CAEfz+Ty=RpaFhLKTiCm=p1eV-eP_Pw82yVH4m6GfKBX0DgNdJw@mail.gmail.com" type="cite">
<pre wrap="">On Wed, Jan 18, 2017 at 8:48 AM, Larry Hastings <a class="moz-txt-link-rfc2396E" href="mailto:larry@hastings.org"><larry@hastings.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">While that's a reasonable policy, unless we have a way to automatically
detect that I suspect C99 stuff will creep into the header files and break
the non-C99 customers. Maybe we could get some sort of buildbot that
exercises this scenario?
</pre>
</blockquote>
<pre wrap="">How about `gcc -ansi` ?</pre>
</blockquote>
<br>
That seems like it should work fine. Perhaps we could even add
this gcc -ansi step to the normal Python build process. It
shouldn't take very long, so it wouldn't slow down the build very
much, and since most Python development happens on UNIX platforms
(I think) this would help prevent more C99 constructs from
creeping into the header files.<br>
<br>
<br>
<i>/arry</i><br>
</div>
</body></html>