[GRASS5] r.neighbors: works with reclass maps?

Glynn Clements glynn.clements at virgin.net
Sat Jan 5 12:49:06 EST 2002


Eric G. Miller wrote:

> C99 allows variable length automatic arrays.  Too bad we probably
> can't rely on that feature yet

I doubt that it will be sensible to rely upon C99 features for another
decades or two. It's only within the past few years that the Open
Group decided that it's OK to require an ANSI C compiler for the X11
code.

> (though, it is supported by gcc-3.0).

gcc has had variable length arrays for some time. But if you're going
to require gcc, you can count on alloca() being available.

And *most* platforms do actually have alloca(); it's more the fact
that you might have to jump through some hoops to get it (e.g. using
"#pragma alloca" before including any headers), or you have to watch
what compiler/linker options you use.

-- 
Glynn Clements <glynn.clements at virgin.net>



More information about the grass-dev mailing list