Glynn Clements f1bdd9a08b Don't bother checking GRASS_GUI; there's only one choice 16 anni fa
..
colors 4d027972db fine tuning for low precip 17 anni fa
FIPS.code db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
G.h 2ad6542ff8 Better handling of flipped/rotated maps 16 anni fa
Makefile d60fab464e gui.tcl removed 16 anni fa
README.TYPE db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
adj_cellhd.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
align_window.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
alloc.c b5ba88b751 Macro-ise G_*alloc() functions 16 anni fa
alloc_cell.c 2c105f36d9 Reduce use of static variables 16 anni fa
area.c 0e0697431b Bundle static variables into per-file structures 16 anni fa
area_ellipse.c c7041e9ca3 Remove unnecessary return values 16 anni fa
area_poly1.c c7041e9ca3 Remove unnecessary return values 16 anni fa
area_poly2.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
area_sphere.c c7041e9ca3 Remove unnecessary return values 16 anni fa
ascii_chk.c c7041e9ca3 Remove unnecessary return values 16 anni fa
asprintf.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
auto_mask.c c7041e9ca3 Remove unnecessary return values 16 anni fa
basename.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
bres_line.c c7041e9ca3 Remove unnecessary return values 16 anni fa
cats.c c7041e9ca3 Remove unnecessary return values 16 anni fa
cell_stats.c c7041e9ca3 Remove unnecessary return values 16 anni fa
cell_title.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
cellstats_eq.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
clear_scrn.c c7041e9ca3 Remove unnecessary return values 16 anni fa
clicker.c c313e28597 Bundle static variables into per-file structures 16 anni fa
closecell.c ec0f58d22b Add write support to GDAL-link, r.external.out 16 anni fa
color_compat.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_free.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_get.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_hist.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_init.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_insrt.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
color_invrt.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_look.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_org.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_rand.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_range.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_read.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_remove.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
color_rule.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_rule_get.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
color_rules.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_set.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_shift.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_str.c 1928e5aa0b Remove socket code 17 anni fa
color_write.c c7041e9ca3 Remove unnecessary return values 16 anni fa
color_xform.c c7041e9ca3 Remove unnecessary return values 16 anni fa
colors.desc 5319eade86 Cristina Castellani: new precip. color tab 17 anni fa
commas.c c7041e9ca3 Remove unnecessary return values 16 anni fa
copy.c c7041e9ca3 Remove unnecessary return values 16 anni fa
copy_dir.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
copy_file.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
counter.c e4164ed7e4 Add --with-pthread etc to configure script 16 anni fa
date.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
datum.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
datum.table db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
datumtransform.table db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
debug.c 0fb91788d7 Add, use G_is_initialized(), G_initialize_done() for one-shot initialisation 16 anni fa
distance.c c313e28597 Bundle static variables into per-file structures 16 anni fa
done_msg.c c7041e9ca3 Remove unnecessary return values 16 anni fa
element_list 631b3596e9 Move element_list to lib/gis, for earlier availability 17 anni fa
ellipse.table db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
endian.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
env.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
error.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
file_name.c c3470870f5 i18n update (g.findfile) 17 anni fa
find_cell.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
find_etc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
find_file.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
find_vect.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
flate.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
fmode.dat db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
format.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
fpreclass.c c7041e9ca3 Remove unnecessary return values 16 anni fa
gdal.c ec0f58d22b Add write support to GDAL-link, r.external.out 16 anni fa
geodesic.c c7041e9ca3 Remove unnecessary return values 16 anni fa
geodist.c c7041e9ca3 Remove unnecessary return values 16 anni fa
get_cellhd.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
get_ellipse.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
get_projinfo.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
get_row.c 2ad6542ff8 Better handling of flipped/rotated maps 16 anni fa
get_row_colr.c 2c105f36d9 Reduce use of static variables 16 anni fa
get_window.c 0fb91788d7 Add, use G_is_initialized(), G_initialize_done() for one-shot initialisation 16 anni fa
getl.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
gisbase.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
gisdbase.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
gisinit.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
gislib.dox 32f0bc5f71 updated 16 anni fa
gisrasterlib.dox 1f0cf514aa null file explanations from Glynn added 16 anni fa
gisvectorlib.dox 0e0903421c doxygen fixes 17 anni fa
histo_eq.c c7041e9ca3 Remove unnecessary return values 16 anni fa
histogram.c c7041e9ca3 Remove unnecessary return values 16 anni fa
history.c c7041e9ca3 Remove unnecessary return values 16 anni fa
home.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
index.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
interp.c 04f998eab9 Fix formatting 17 anni fa
intersect.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
is.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
key_value1.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
key_value2.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
key_value3.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
key_value4.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
legal_name.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
line_dist.c c7041e9ca3 Remove unnecessary return values 16 anni fa
list.c c7041e9ca3 Remove unnecessary return values 16 anni fa
ll_format.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
ll_scan.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
locale.c 474402cb81 Various MinGW bugfixes from Rosen Matev 16 anni fa
location.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
ls.c c7041e9ca3 Remove unnecessary return values 16 anni fa
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev 16 anni fa
make_loc.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
make_mapset.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
mapcase.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
mapset.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
mapset_msc.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
mapset_nme.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
mask_info.c 2c105f36d9 Reduce use of static variables 16 anni fa
maskfd.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
myname.c 2c105f36d9 Reduce use of static variables 16 anni fa
named_colr.c 671e44225a Fix formatting of array initialisers 17 anni fa
new_des db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
nl_to_spaces.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
nme_in_mps.c 96e1894267 Remove unused code 17 anni fa
null_val.c f0ff28f5cc whitespace niceness (merge from devbr6), typo in warning msg 16 anni fa
open.c ef13321e5a Prevent segfault if mapset == NULL 17 anni fa
open_misc.c 835d80f89f Fix handling of qualified map names 17 anni fa
opencell.c ec0f58d22b Add write support to GDAL-link, r.external.out 16 anni fa
overwrite.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
parser.c f1bdd9a08b Don't bother checking GRASS_GUI; there's only one choice 16 anni fa
paths.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
percent.c 58aa2aad9c do not use row+1 in G_percent() example 16 anni fa
pi.h db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
plot.c c7041e9ca3 Remove unnecessary return values 16 anni fa
pole_in_poly.c c7041e9ca3 Remove unnecessary return values 16 anni fa
popen.c f3f9b42884 Windows has _popen, _pclose 16 anni fa
progrm_nme.c 85fea69d7b Remove unnecessary static variables from opencell.c 16 anni fa
proj1.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
proj2.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
proj3.c 21fa27a066 Eliminate use of static buffers for return values 16 anni fa
projections db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
put_cellhd.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
put_row.c ec0f58d22b Add write support to GDAL-link, r.external.out 16 anni fa
put_title.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
put_window.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
putenv.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
quant.c c7041e9ca3 Remove unnecessary return values 16 anni fa
quant_io.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
quant_rw.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
radii.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
range.c c7041e9ca3 Remove unnecessary return values 16 anni fa
raster.c c7041e9ca3 Remove unnecessary return values 16 anni fa
raster_metadata.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
rd_cellhd.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
reclass.c c7041e9ca3 Remove unnecessary return values 16 anni fa
remove.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
rename.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
rhumbline.c c7041e9ca3 Remove unnecessary return values 16 anni fa
rotate.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
sample.c 0f1ece679f Fix various bugs in G_get_raster_sample() 17 anni fa
set_window.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
short_way.c c7041e9ca3 Remove unnecessary return values 16 anni fa
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
snprintf.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
spawn.c 474402cb81 Various MinGW bugfixes from Rosen Matev 16 anni fa
state27 db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
state83 db49180dd7 welcome to GRASS 7.0.svn 17 anni fa
strings.c c7041e9ca3 Remove unnecessary return values 16 anni fa
system.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
tempfile.c 0fb91788d7 Add, use G_is_initialized(), G_initialize_done() for one-shot initialisation 16 anni fa
timestamp.c c7041e9ca3 Remove unnecessary return values 16 anni fa
token.c c7041e9ca3 Remove unnecessary return values 16 anni fa
trim_dec.c c7041e9ca3 Remove unnecessary return values 16 anni fa
user_config.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
verbose.c 0fb91788d7 Add, use G_is_initialized(), G_initialize_done() for one-shot initialisation 16 anni fa
view.c c7041e9ca3 Remove unnecessary return values 16 anni fa
whoami.c ab082da4e0 Add "const" where appropriate to libgis return types 16 anni fa
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
wind_2_box.c c7041e9ca3 Remove unnecessary return values 16 anni fa
wind_format.c c7041e9ca3 Remove unnecessary return values 16 anni fa
wind_in.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
wind_limits.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
wind_overlap.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
wind_scan.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa
window_map.c 0fb91788d7 Add, use G_is_initialized(), G_initialize_done() for one-shot initialisation 16 anni fa
worker.c e4164ed7e4 Add --with-pthread etc to configure script 16 anni fa
wr_cellhd.c c7041e9ca3 Remove unnecessary return values 16 anni fa
writ_zeros.c c7041e9ca3 Remove unnecessary return values 16 anni fa
zero.c c7041e9ca3 Remove unnecessary return values 16 anni fa
zero_cell.c c7041e9ca3 Remove unnecessary return values 16 anni fa
zone.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 anni fa

README.TYPE

.\" use -ms
.LP
There were two flavors of changes made to structures in gis.h
and to calls to routines in the library:

.IP 1.
Variables in structures, parameters in argument lists to library routines,
and return values from library routines that really represented
CELL data but were declared as int have been changed to CELL.

The following structures were changed:

.DS
Categories [gis.h]
Cell_stats
Colors
Histogram
Range
Reclass
.DE

The argument type for some parameters for the following routines was changed:

.DS
G_init_cats [cats.c]
G_get_cats
G_set_cats
G_get_color [color.c]
G_set_color
G_make_random_colors [make_colr2.c]
G_make_color_wave
G_make_grey_scale
G_make_color_ramp
G_make_aspect_colors
G_add_histogram [histogram.c]
G_set_histogram
G_update_range [range.c]
.DE

The return value for the following routines was changed:

.DS
G_number_of_cats [cats.c]
G_get_histogram_cat [histogram.c]
.DE

This change does not, at present, require changes to existing code since
the CELL type is currently defined as int.

In the future, if we (or someone else) want to
redefine CELL to long (say on a 16 bit machine), the application code
will compile ok, but will not run correctly since the calling seqences
(including printf and scanf) will not match anymore.
To upgrade GRASS code for this is a big deal.
It consists of
finding all places that ints are used in assignments with
CELL variables,
modifying all the calls to the above routines,
and modifying all calls to other routines that don't know about the CELL
type (in particular printf, scanf, and Vask code).

The way to handle printf for CELL data is to use %ld and cast the
CELL value to long:
.DS
CELL x
printf ("%ld", (long) x);
.DE
The way to handle scanf for CELL data is to use %ld into a long
and assign to the CELL varaible:
.DS
CELL x;
long t;

scanf ("%ld", &t);
x = (CELL) t;
.DE
For Vask calls, assign the CELL value to a long, call Vask will the long,
then assign the long to the CELL variable:
.DS
CELL x;
long t;

t = x;
V_clear();
V_ques (&t, 'l', ...);
V_call();
x = t;
.DE

The long vs int issue for CELL also presents a subtle, but
potentially fatal, problem with malloc(n) which requires n to be int.

Suppose we want to allocate an array for reclass, from
cats min to max. What we do now is

.DS
char *table;
CELL min,max;
int len;

len = max - min + 1;
table = malloc (len);
.DE
This will fail if CELL is long and the expression max-min+1 yields
a value which overflows an int. Therefore, we should do
.DS
long len;

len = max - min + 1;
if (len != (int)len)
error("To many categories");
table = malloc ((int)len);
.DE
.IP 2.
Variables in structures, parameters in argument lists to library routines,
and return values from library routines that should have been long
but were declared as int have been changed to long.

The following structures were changed:

.DS
Cell_stats [gis.h]
Histogram
.DE

The argument type for some parameters for the following routines was changed:

.DS
G_add_histogram [histogram.c]
G_set_histogram
G_find_cell_stat [cell_stats.c]
G_next_cell_stat
.DE

The return value for the following routines was changed:

.DS
G_get_histogram_count [histogram.c]
.DE


These changes required immediate upgrade.
I think this update is done, but I want to review it again.