bug-standards
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

standards.texi update for newer POSIX and C standards


From: Paul Eggert
Subject: standards.texi update for newer POSIX and C standards
Date: Tue, 30 Apr 2024 09:49:26 -0700
User-agent: Mozilla Thunderbird

Here's a proposed patch to standards.texi, to better reflect current practice in GNU hacking, and to reflect newer versions of C and POSIX standards.

The main change is to say that it's OK to assume C99, except for VLAs. Many (most?) GNU programs are doing this already, e.g., by using declarations after statements.

This patch also drops coverage of the K&R function definition style, as this is no longer needed on practical platforms and C23 no longer requires support for that syntax.

Also, C23 removed trigraphs (finally!).

There is no longer a "POSIX.2"; it's just POSIX.1.

Long options like --help are not prohibited by POSIX, as far as I can see. Perhaps old POSIX prohibited them, but that ship sailed long ago, they're now universal, and I don't see POSIX prohibiting them now.

Attachment: standards.texi.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]