[GRASS-dev] G7: r.what limited to 400 maps?

Hi,

would be be possible to enable r.what to support more than 400 maps? I
fail on multiannual daily time series data extraction.

My brute-force attempt to change
#define NFILES 400
to
#define NFILES 4000

leads to

GRASS 7.0.svn (latlong):~ > r.what map=`g.mlist rast pat="frac.*"
sep=,` coord=12.833333,47.183333
raster map(s) available in mapset <clouds>:
ERROR: Unable to open input file
       </home/neteler/grassdata/latlong/clouds/cell_misc/frac.2006.088/f_format>

which is map number 510 or so.

Patches welcome...

thanks
Markus