[GRASS5] PATCH: r.grow2

Glynn Clements glynn at gclements.plus.com
Tue Jun 14 23:31:17 EDT 2005


Brad Douglas wrote:

> r.grow2 has not compiled for me for some time because abs() is
> redefined.  Attached is a fix.  Any objections to me applying it?

Efficiency. The MAX() macro will result in one of the arguments being
evaluated twice, so its arguments shouldn't themselves be macros.

abs() is standard ANSI C (C89), so the local definition can be
removed. Then it doesn't matter about MAX() being a macro.

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




More information about the grass-dev mailing list