[GRASS5] GRASS 5 and ANSI C
Bernhard Reiter
bernhard at intevation.de
Fri Oct 4 07:23:03 EDT 2002
On Thu, Oct 03, 2002 at 07:28:11PM -0700, Eric G. Miller wrote:
> On Thu, Oct 03, 2002 at 10:14:06AM -0700, roger wrote:
> > 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.
Probably K&R C refers to the first revision of the book.
AFAIK the first revision was not ANSI C.
> C99 requires valid prototypes (not just declarations like "void
> foo();").
We don't want C99 anyway. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20021004/6adb93c9/attachment.bin
More information about the grass-dev
mailing list