This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH,fortran] Fix PR 31244


On Fri, Oct 05, 2007 at 04:41:07PM -0700, Steve Kargl wrote:
> On Fri, Oct 05, 2007 at 11:51:06PM +0100, FX Coudert wrote:
> > Also, a formatting question. In the following, is the blank line  
> > consistent with GCC coding style? (I don't think so, and never put one.)
> > 
> > > static void
> > >-resolve_data (gfc_data * d)
> > >+resolve_data (gfc_data *d)
> > > {
> > >+
> > >   if (resolve_data_variables (d->var) == FAILURE)
> > >     return;
> 
> I could be confusing BSD and GNU styles.  If a function has
> not local variable declaration, then a blank line is inserted.
> 

It appears to be BSD.

man 9 style

     static void
     usage()
     {
        /* Insert an empty line if the function has no local variables. */

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]