Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connectionsPath: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: David Brown
Newsgroups: comp.lang.c
Subject: Re: "A diagram of C23 basic types"
Date: Thu, 3 Apr 2025 20:51:48 +0200
Organization: A noiseless patient Spider
Lines: 31
Message-ID:
References: <87y0wjaysg.fsf@gmail.com>
<20250402232443.00003a7d@yahoo.com>
<85y0whjdw3.fsf@nosuchdomain.example.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 03 Apr 2025 20:51:49 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="db4f14c1cbc89984b58631ea9e632a09";
logging-data="1445181"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+l2Y2BW56b1C/w4fy4Z5t+UU6OrHRMxWA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NSMPeeOslTdupvtirDXN2wFFq9s=
Content-Language: en-GB
In-Reply-To: <85y0whjdw3.fsf@nosuchdomain.example.com>
Bytes: 2631
On 03/04/2025 20:31, Keith Thompson wrote:
> bart writes:
> [...]
>> I understand C23 mode will be enabled by a compiler option (-std=c23);
>> the same method could have been used to enable all std headers, and
>> for that to be the default.
>
> The standard says exactly nothing about compiler options. "-std=c23"
> is a convention used by *some* compilers (gcc and other compilers
> designed to be compatible with it).
>
>> Hello World then becomes this one-liner:
>>
>> int main() {puts("Hello, World!");}
>
> A compiler could provide such an option as a non-conforming extension
> with no change in the standard. I'm not aware that any compiler
> has done so, or that there's been any demand for it. One reason
> for the lack of demand might be that any code that depends on it
> is not portable. (Older versions of MS Visual Studio create a
> "stdafx.h" header, but newer versions appear to have dropped that.)
>
gcc provides such an option :
gcc -include stdio.h hello_world.c
If someone really wanted to, they could easily make a shell script, bash
alias, Windows bat file, or whatever, as a wrapper for gcc with a whole
bunch of "-include" options for all the standard headers.