| Deutsch English Français Italiano |
|
<86o6xdhorr.fsf@linuxsc.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch <tr.17687@z991.linuxsc.com> Newsgroups: comp.lang.c Subject: Re: "A diagram of C23 basic types" Date: Wed, 02 Apr 2025 21:06:48 -0700 Organization: A noiseless patient Spider Lines: 16 Message-ID: <86o6xdhorr.fsf@linuxsc.com> References: <87y0wjaysg.fsf@gmail.com> <vsj1m8$1f8h2$1@dont-email.me> <vsj2l9$1j0as$1@dont-email.me> <vsjef3$1u4nk$1@dont-email.me> <vsjg6t$20pdb$1@dont-email.me> <vsjjd1$23ukt$1@dont-email.me> <vsjkvb$25mtg$1@dont-email.me> <vsjlkq$230a5$2@dont-email.me> <vsjs5k$2bfc5$2@dont-email.me> <vsjvgu$2fpp1$1@dont-email.me> <20250402113624.693@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Thu, 03 Apr 2025 06:06:48 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5fae27e4725ec0f03e8fd915a6650b3a"; logging-data="3846998"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+xRKBvZTxIyiKLVzVFlnlGJI/Qk3pqA9U=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:G8wRpXuPsauGURI1QDIUYO+aWrI= sha1:osutdWsFbgc+aopL8BBDqGLFcb0= Kaz Kylheku <643-408-1753@kylheku.com> writes: [some symbols are defined in more than one header] > (In my opinion, things would be better if headers were not allowed > to behave as if they include other headers, or provide identifiers > also given in other heards. Not in ISO C, and not in POSIX. > Every identifier should be declared in exactly one home header, > and no other header should provide that definition. [...]) Not always practical. A good example is the type size_t. If a function takes an argument of type size_t, then the symbol size_t should be defined, no matter which header the function is being declared in. Similarly for NULL for any function that has defined behavior on some cases of arguments that include NULL. No doubt there are other compelling examples.