Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Newsgroups | comp.std.c |
| Subject | Re: What is the point of restrict in fopen? |
| Date | 2023-08-04 20:15 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <86sf8yface.fsf@linuxsc.com> (permalink) |
| References | (1 earlier) <86cz0mzemm.fsf@linuxsc.com> <9x2cnQDaqOkRtyf5nZ2dnZeNn_di4p2d@giganews.com> <20230721215906.639@kylheku.com> <86lef4rwx9.fsf@linuxsc.com> <20230725120541.589@kylheku.com> |
Kaz Kylheku <864-117-4973@kylheku.com> writes: > On 2023-07-25, Tim Rentsch <tr.17687@z991.linuxsc.com> wrote: > >> Kaz Kylheku <864-117-4973@kylheku.com> writes: >> >>> On 2023-07-21, Jakob Bohm <jb-usenet@wisemo.com.invalid> wrote: >>> >>>> On 2023-07-20 19:17, Tim Rentsch wrote: >>>> >>>>> Kaz Kylheku <864-117-4973@kylheku.com> writes: >>>>> >>>>>> I've noticed that both arguments of fopen are >>>>>> restrict-qualified. >>>>> >>>>> What I think you mean is that the arguments given in the >>>>> prototype declaration in the C standard are qualified with >>>>> the 'restrict' keyword. >>>>> >>>>> Note that this form of declaration has no effect on the >>>>> semantics of the function. The function declaration, and its >>>>> semantics, are just the same as if the uses of 'restrict' >>>>> were removed. [...] > Here is a realistic plan. > > Phase 1: > > [...] > > Phase 2: > > [...] > > Phase 3: > > [...] Here is a simpler and better idea. Add a Recommended Practice that compilers provide an option to produce a diagnostic when a function parameter is restrict-qualified in the function definition but is not restrict-qualified in any other declaration of the function in the same compilation unit. And nothing more than that.
Back to comp.std.c | Previous | Next — Previous in thread | Next in thread | Find similar
What is the point of restrict in fopen? Kaz Kylheku <864-117-4973@kylheku.com> - 2023-05-24 23:41 +0000
Re: What is the point of restrict in fopen? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-07-20 10:17 -0700
Re: What is the point of restrict in fopen? Jakob Bohm <jb-usenet@wisemo.com.invalid> - 2023-07-21 08:55 +0200
Re: What is the point of restrict in fopen? Kaz Kylheku <864-117-4973@kylheku.com> - 2023-07-22 05:37 +0000
Re: What is the point of restrict in fopen? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-07-25 05:35 -0700
Re: What is the point of restrict in fopen? Kaz Kylheku <864-117-4973@kylheku.com> - 2023-07-25 19:33 +0000
Re: What is the point of restrict in fopen? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-08-04 20:15 -0700
Re: What is the point of restrict in fopen? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2023-07-25 05:37 -0700
csiph-web