[GRASS5] GRASS 5 and ANSI C
Eric G. Miller
egm2 at jps.net
Thu Oct 3 22:28:11 EDT 2002
On Thu, Oct 03, 2002 at 10:14:06AM -0700, roger wrote:
>
> Markus,
>
> You can use the -ansi flag to force gcc to support full ANSI
> features and to disable non-ANSI features. If you then use
> -pedantic the compiler will reject any code that is not ANSI
> standard. The error.log will contain a list of uncompiled
> code.
Generally speaking, K&R C is perfectly valid ANSI C89/90.
So, -ansi -pendantic might not change much. C99 requires
valid prototypes (not just declarations like "void foo();").
And constructs like:
foo (bar) char *bar;
{
return printf("%s\n", bar);
}
are no longer valid (default int & parameter declarations/promotions).
--
begin 664 .signature
M<F5L;&E-("Y'(&-I<D4@/G1E;BYS<&I`,FUG93P)"`@("`@("`@("`@("`@(
M"`@("`@("`@("`@("`@("`A%<FEC($<N($UI;&QE<B`\96=M,D!J<',N;F5T
"/@H`
`
end
More information about the grass-dev
mailing list