Pārlūkot izejas kodu

r.patch: rename G_is_zero_value to is_zero_value (trunk, https://trac.osgeo.org/grass/changeset/60835)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61338 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 11 gadi atpakaļ
vecāks
revīzija
977f835a6a
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      raster/r.patch/do_patch.c

+ 3 - 3
raster/r.patch/do_patch.c

@@ -9,7 +9,7 @@
  *          0 the result contains no zero nulls
  *          0 the result contains no zero nulls
  */
  */
 
 
-int G_is_zero_value(void *rast, RASTER_MAP_TYPE data_type)
+int is_zero_value(void *rast, RASTER_MAP_TYPE data_type)
 {
 {
 
 
     /* insert 0 check here */
     /* insert 0 check here */
@@ -28,14 +28,14 @@ int do_patch(void *result, void *patch,
     more = 0;
     more = 0;
     while (ncols-- > 0) {
     while (ncols-- > 0) {
 	if (use_zero) {		/* use 0 for transparency instead of NULL */
 	if (use_zero) {		/* use 0 for transparency instead of NULL */
-	    if (G_is_zero_value(result, out_type) ||
+	    if (is_zero_value(result, out_type) ||
 		Rast_is_null_value(result, out_type)) {
 		Rast_is_null_value(result, out_type)) {
 		/* Don't patch hole with a null, just mark as more */
 		/* Don't patch hole with a null, just mark as more */
 		if (Rast_is_null_value(patch, out_type))
 		if (Rast_is_null_value(patch, out_type))
 		    more = 1;
 		    more = 1;
 		else {
 		else {
 		    /* Mark that there is more to be done if we patch with 0 */
 		    /* Mark that there is more to be done if we patch with 0 */
-		    if (G_is_zero_value(patch, out_type))
+		    if (is_zero_value(patch, out_type))
 			more = 1;
 			more = 1;
 		    Rast_raster_cpy(result, patch, 1, out_type);
 		    Rast_raster_cpy(result, patch, 1, out_type);
 		    if (out_type == CELL_TYPE)
 		    if (out_type == CELL_TYPE)