Re: Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.

From: Anders Åstrand <andast(at)kth(dot)se>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.
Date: 2019-09-30 09:18:46
Message-ID: b5072804-72f4-47f0-afbe-d5dba000164a@email.android.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

<div dir='auto'>Thanks for your attention! That sentence made me believe the style guide was outdated, but then I found fairly recent posts referring to it and got confused.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sep 26, 2019 10:53, Peter Eisentraut &lt;peter(dot)eisentraut(at)2ndquadrant(dot)com&gt; wrote:<br type="attribution" /><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">On 2019-09-25 00:13, Tom Lane wrote:&#13;<br>
&gt; Peter Eisentraut &lt;peter(dot)eisentraut(at)2ndquadrant(dot)com&gt; writes:&#13;<br>
&gt;&gt; PostgreSQL 12 requires C99, so those guidelines should probably be&#13;<br>
&gt;&gt; rephrased from "because old compilers don't accept it" to "because we&#13;<br>
&gt;&gt; like it that way".&#13;<br>
&gt; &#13;<br>
&gt; Yeah, or more formally "to encourage consistent coding style".&#13;<br>
&#13;<br>
fixed&#13;<br>
&#13;<br>
-- &#13;<br>
Peter Eisentraut&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; http://www.2ndQuadrant.com/&#13;<br>
PostgreSQL Development, 24x7 Support, Remote DBA, Training &amp; Services&#13;<br>
</p>
</blockquote></div><br></div>

Attachment Content-Type Size
unknown_filename text/html 1.2 KB

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2019-09-30 14:24:27 Re: Chapter 43.8. "Transaction Management" fails to state two critical restrictions
Previous Message Aramaki Zyake 2019-09-30 07:46:56 RE: Required locks for ANALYZE