Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
977f835a6a
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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
  */
 
-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 */
@@ -28,14 +28,14 @@ int do_patch(void *result, void *patch,
     more = 0;
     while (ncols-- > 0) {
 	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)) {
 		/* Don't patch hole with a null, just mark as more */
 		if (Rast_is_null_value(patch, out_type))
 		    more = 1;
 		else {
 		    /* 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;
 		    Rast_raster_cpy(result, patch, 1, out_type);
 		    if (out_type == CELL_TYPE)