Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Is 'extern' necessary? Date: Tue, 14 Feb 2017 08:54:27 -0800 Organization: None to speak of Lines: 19 Message-ID: References: <2e2f9023-8486-4956-bce2-03c1d3204a18@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="224226333e9535e2f06996e59b2311d1"; logging-data="29040"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/h7i5Qq8I2puxgsnpNLL33" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:BIOTcXGz9r7b/8C+FZmVnmDuuQU= sha1:q8IzVc4rNatLlC2UTpeEsI/BW3U= Xref: csiph.com comp.lang.c:103887 supercat@casperkitty.com writes: > On Tuesday, February 14, 2017 at 6:29:50 AM UTC-6, David Brown wrote: >> It does not have "restrict". There is nothing to stop an implementation >> /adding/ information - but it should not skip things. > > Does "restrict" serve any more purpose in a prototype than identifier names? Strictly speaking, no. But it's reasonable to assume that any restrict keywords in a function declaration match those in the corresponding function definition, and for a compiler to issue warnings based on that assumption. [...] -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"