[GRASS5] [bug #746] (grass) Change all G_put_map_row() -> G_put_c_raster_row() ?

Justin Hickey via RT grass-bugs at intevation.de
Tue May 29 04:32:05 EDT 2001


Hi Markus

mneteler wrote (Tue, May 29 2001 10:06:11):

> Subject: Change all G_put_map_row() -> G_put_c_raster_row() ?
> 
> grass downloaded at: CVS Server, Germany
> 
> There are still > 70 occurencies of the deprecated function G_put_map_row()
> within the sources. Question is to change them to G_put_c_raster_row() for
> proper zero/NULL handling:

Is there a G_put_raster_row(..., ..., dtatType) function? If so you should
change the calls to G_put_raster_row(..., ..., CELL) instead. These types of
functions modularize the code. The G_put_[cfd]_raster_row() functions should
become static functions of whatever file they are in. That is, all calls that
want to put a raster row should call G_put_raster_row(..., ..., dtatType)
which in turn calls the appropriate static G_put_[cfd]_raster_row() function.
My todo list includes doing this for the null_val.c since I already made some
changes to that file. I just didn't have time to go through the code and
change the calls yet.

Anyway, that's just my 2 cents worth.

Justin Hickey

PS Sorry about the duplicate Markus, but I don't think I can change the "reply
to" field in RT

-------------------------------------------- Managed by Request Tracker



More information about the grass-dev mailing list