codingconventions.html update for new intl directory

Joseph S. Myers jsm@polyomino.org.uk
Wed Oct 8 21:28:00 GMT 2003


On Wed, 8 Oct 2003, Zack Weinberg wrote:

> +<p>Some of GCC's source files are still written with the expectation
> +that they must be usable with "K+R" (pre-standard) compilers.  Patches
> +to convert such files to ISO C are welcome.  However, please keep the
> +style of any given file consistent; do not introduce new-style
> +function definitions in a file that currently uses old-style, unless
> +you are converting the entire file.  (Functions that take a variable
> +number of arguments are an exception.  They should be written in ISO C
> +style even if the rest of the file is still in K+R style.)</p>

This paragraph is now misleading.  All of the gcc/ directory (except maybe
parts of config/) uses ISO C function definitions - the files can hardly
any longer be considered to be written to be usable with K&R compilers,
but there will still be embedded K&R assumptions (other than function
definition style, e.g. lack of string concatentation and excess casts)
that should freely be converted to ISO C. While libiberty may have its own
requirements.

-- 
Joseph S. Myers
jsm@polyomino.org.uk



More information about the Gcc-patches mailing list