This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


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

GDB: Coding style.


Could CVS run indent on the server before the file is checked in.  I think
cvs-wrappers can do this kind of stuff.  I'm not sure what other
implications there are.

Brendan Simon.


Stan Shebs wrote:

> REFORMAT:  Over the years GDB sources have accumulated detritus from
> many different coding styles, despite the official GNU standard's
> encouragement of uniformity, and now there is much confusion about the
> correct style for GDB.  So I propose a flag day, in which we run GNU
> indent over all the code at once.  The CVS diffs will be massive, old
> patches will fail (although one could run indent on the patches), but
> then we can use indent all the time and never have to deal with this
> again.
>
> ANSI/ISO C:  So far I've not seen any reports of people being hosed by
> the pure standard C code in 4.18.  By the end of June we'll know for
> sure; then we can whack all the K&R compat bits and go to new-style
> code everywhere.
>
>                                                         Stan