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

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема Do not use C++ style comments (// comments). Strict ANSI C compilers do not accept them.
Дата
Msg-id 156924954640.1117.6309209869705522549@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: Do not use C++ style comments (// comments). Strict ANSI Ccompilers do not accept them.  (Peter Eisentraut <peter.eisentraut@2ndquadrant.com>)
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/source-format.html
Description:

This sentence in the style guide feels outdated. // style comments have been
in the ANSI C standard for almost 20 years now (C99 was accepted as ANSI
standard in may 2000). I suggest rewording this to "Do not use C99 style
comments (// comments). Strict C89 compilers do not accept them." or come up
with some other reason for /**/ style being preferred to // style since I'm
not entierly convinced postgres compiles on C89 anyways.

В списке pgsql-docs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fix contributor name-related inconsistencies in release-12.sgml
Следующее
От: Tom Lane
Дата:
Сообщение: Re: fix tags in v12 Release Notes