[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New module argp-version-etc
From: |
Bruno Haible |
Subject: |
Re: New module argp-version-etc |
Date: |
Fri, 26 Jun 2009 14:30:15 +0200 |
User-agent: |
KMail/1.9.9 |
Paolo Bonzini wrote:
> > With Bruno's approach, a public function must
> > have *no* spec just before its definition, while each private one does.
>
> That also depends on whether you insist on prototypes for all static
> functions. In that case, that's the place for specs of private
> functions, and *no* function has a spec before the definition.
Why would these two issues be correlated? The important thing for me is that
a user of a module only needs to read through the .h file, which is typically
much smaller than the .c file. If someone needs to know the documentation of
a 'static' function, he's in the situation of modifying the module, and he
better has read the entire .c file before he starts doing so. So, in this
case, it does not really matter where in the .c file the comments for 'static'
functions are located.
Bruno
- Re: New module argp-version-etc, (continued)
- Re: New module argp-version-etc, Sergey Poznyakoff, 2009/06/24
- Re: New module argp-version-etc, Bruno Haible, 2009/06/24
- Re: New module argp-version-etc, Sergey Poznyakoff, 2009/06/25
- Re: New module argp-version-etc, Jim Meyering, 2009/06/25
- Re: New module argp-version-etc, Sergey Poznyakoff, 2009/06/25
- Re: New module argp-version-etc, Jim Meyering, 2009/06/25
- Re: New module argp-version-etc, Paolo Bonzini, 2009/06/25
- Re: New module argp-version-etc,
Bruno Haible <=
- Re: New module argp-version-etc, Paolo Bonzini, 2009/06/26
- Re: New module argp-version-etc, Bruno Haible, 2009/06/26
- Re: New module argp-version-etc, Sergey Poznyakoff, 2009/06/25
- Re: New module argp-version-etc, Bruno Haible, 2009/06/25
- Re: New module argp-version-etc, Sergey Poznyakoff, 2009/06/25
- Re: New module argp-version-etc, Eric Blake, 2009/06/25
- Re: New module argp-version-etc, Eric Blake, 2009/06/25
- Re: New module argp-version-etc, Sergey Poznyakoff, 2009/06/25
- Re: New module argp-version-etc, Jim Meyering, 2009/06/26