Changeset 64877
- Timestamp:
- Mar 16, 2015, 2:44:25 PM (9 years ago)
- Location:
- grass/trunk/raster/r.patch
- Files:
-
- 3 edited
-
do_patch.c (modified) (2 diffs)
-
local_proto.h (modified) (1 diff)
-
main.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
grass/trunk/raster/r.patch/do_patch.c
r60839 r64877 22 22 int do_patch(void *result, void *patch, 23 23 struct Cell_stats *statf, int ncols, 24 RASTER_MAP_TYPE out_type, int use_zero)24 RASTER_MAP_TYPE out_type, size_t out_cell_size, int use_zero) 25 25 { 26 26 int more; … … 57 57 } /* NULL support */ 58 58 } 59 result = G_incr_void_ptr(result, Rast_cell_size(out_type));60 patch = G_incr_void_ptr(patch, Rast_cell_size(out_type));59 result = G_incr_void_ptr(result, out_cell_size); 60 patch = G_incr_void_ptr(patch, out_cell_size); 61 61 } 62 62 return more; -
grass/trunk/raster/r.patch/local_proto.h
r32526 r64877 1 1 /* do_patch.c */ 2 2 int do_patch(void *result, void *, struct Cell_stats *, int, RASTER_MAP_TYPE, 3 int);3 size_t, int); 4 4 /* support.c */ 5 5 int support(char **, struct Cell_stats *, int, struct Categories *, -
grass/trunk/raster/r.patch/main.c
r63345 r64877 35 35 int outfd; 36 36 RASTER_MAP_TYPE out_type, map_type; 37 size_t out_cell_size; 37 38 struct History history; 38 39 void *presult, *patch; … … 115 116 } 116 117 118 out_cell_size = Rast_cell_size(out_type); 119 117 120 rname = opt2->answer; 118 121 outfd = Rast_open_new(new_name = rname, out_type); … … 147 150 Rast_get_row(infd[i], patch, row, out_type); 148 151 if (!do_patch 149 (presult, patch, &statf[i], ncols, out_type, use_zero)) 152 (presult, patch, &statf[i], ncols, out_type, out_cell_size, 153 use_zero)) 150 154 break; 151 155 }
Note:
See TracChangeset
for help on using the changeset viewer.
