[GRASS-dev] K&R functions in GRASS 7

Glynn Clements glynn at gclements.plus.com
Tue Mar 19 19:07:43 PDT 2013


Vaclav Petras wrote:

> we still have K&R style functions in C code? They work the same but I
> though that they were rewritten.
> 
> Doxygen warns about this in these files:
> 
> /home/vasek/dev/grass/trunk/lib/raster3d/volume.c

Fixed in r55463.

> /home/vasek/dev/grass/trunk/lib/external/shapelib/dbfopen.c
> /home/vasek/dev/grass/trunk/lib/external/shapelib/shpopen.c

I can't see any K&R style declarations in these files. It's possible
that the SHPAPI_CALL macro is confusing Doxygen.

> /home/vasek/dev/grass/trunk/lib/db/sqlp/sqlp.tab.c

This isn't a source file, it's an intermediate file generated from
sqlp.y using yacc or bison.

FWIW, the file which bison generates uses ANSI C syntax if __STDC__ is
defined (which is the case for any ANSI C compiler).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list