Martin Landa 311392ebcb libgis: G_make_location() - check for legal name před 12 roky
..
colors 5457e3d822 update to srtm_plus colorable před 12 roky
FIPS.code db49180dd7 welcome to GRASS 7.0.svn před 17 roky
G.h 6d69fea9b6 Move XDR functions from lib/raster to lib/gis před 12 roky
Makefile b54f3e9bc2 move proj-related files from etc/ to etc/proj před 13 roky
README.TYPE 0265bfd52e spelling před 13 roky
adj_cellhd.c ebfd5088d1 dox: region (window) functions doc improvements před 12 roky
alloc.c 48b4f09d9d fix copyright initial year (from G6) před 13 roky
area.c 0619f52281 libgis: noting necessary call in documentation před 12 roky
area_ellipse.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
area_poly1.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
area_poly2.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
area_sphere.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
ascii_chk.c c7041e9ca3 Remove unnecessary return values před 16 roky
asprintf.c e0ca521985 libgis: fix vsnprintf usage in G_rasprintf před 12 roky
basename.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
bres_line.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
clicker.c c313e28597 Bundle static variables into per-file structures před 16 roky
color_rules.c 1dba9b62d4 dox: fixing several doxygen warnings (wrong file names, typos, lt gt chars) před 13 roky
color_str.c 8db528aa65 color_str.c moved back to libgis (modules fixed) před 16 roky
colors.desc dc52048837 libgis: new srtm_plus color table před 12 roky
commas.c c7041e9ca3 Remove unnecessary return values před 16 roky
copy_dir.c 01ed48535c Fix bogus inclusion of <grass/config.h> před 15 roky
copy_file.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
counter.c aff756a341 Fix G_is_initialized() for case of concurrent initialisation attempts před 16 roky
date.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
datum.c b54f3e9bc2 move proj-related files from etc/ to etc/proj před 13 roky
datum.table 1087d8ad64 support ITRF_1992 datum před 12 roky
datumtransform.table 1087d8ad64 support ITRF_1992 datum před 12 roky
debug.c 09b7db1dd9 doxygen errors fixed před 12 roky
distance.c b620683d20 dox: segment library (unnecessary fn and SEG/seg mess) před 13 roky
done_msg.c c7041e9ca3 Remove unnecessary return values před 16 roky
ellipse.table db49180dd7 welcome to GRASS 7.0.svn před 17 roky
ellipse.table.solar.system e4531aa905 Correction in Ganymede's minor radius from Alessandro Frigeri. před 13 roky
endian.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
env.c f54da971c3 gislib: update env.c doxygen documentation před 14 roky
error.c 0764296ef8 dox: reducing doxygen warnings před 13 roky
file_name.c 87da4ee948 libgis: dox cosmetics před 12 roky
find_etc.c 09b7db1dd9 doxygen errors fixed před 12 roky
find_file.c 09b7db1dd9 doxygen errors fixed před 12 roky
find_rast.c dc7822aafa G_find_grid3 moved from raster3d to gislib před 14 roky
find_rast3d.c dc7822aafa G_find_grid3 moved from raster3d to gislib před 14 roky
find_vect.c 3e65212312 libgis: debug G_find_raster/vector() před 15 roky
flate.c 4c00de6892 Fix signedness mismatch před 15 roky
fmode.c 1acdd0be01 Build system clean-up před 16 roky
geodesic.c c7041e9ca3 Remove unnecessary return values před 16 roky
geodist.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
get_ellipse.c b54f3e9bc2 move proj-related files from etc/ to etc/proj před 13 roky
get_projinfo.c cb83f2c216 gislib: update doxygen docs for get_projinfo.c před 14 roky
get_window.c 09b7db1dd9 doxygen errors fixed před 12 roky
getl.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
gis_local_proto.h faacfd2eb2 libgis: add G_mapset_path() před 12 roky
gisbase.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
gisdbase.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
gisinit.c 016a2f333b fwd-port of improved error msg před 12 roky
gislib.dox c18eee3ba3 dox: syntax errors před 12 roky
handler.c ee734e99fb gislib: document error handlers před 13 roky
home.c 384d7f7b04 remove useless comment, we have to return something. probably the doxygen comments need adjustment před 16 roky
ilist.c 09b7db1dd9 doxygen errors fixed před 12 roky
intersect.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
is.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
key_value1.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) před 13 roky
key_value2.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) před 13 roky
key_value3.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) před 13 roky
key_value4.c 4a29361f14 Generate fatal errors rather than returning a status, for: před 15 roky
legal_name.c 87da4ee948 libgis: dox cosmetics před 12 roky
line_dist.c c7041e9ca3 Remove unnecessary return values před 16 roky
list.c 1dba9b62d4 dox: fixing several doxygen warnings (wrong file names, typos, lt gt chars) před 13 roky
ll_format.c ab082da4e0 Add "const" where appropriate to libgis return types před 16 roky
ll_scan.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
locale.c 474402cb81 Various MinGW bugfixes from Rosen Matev před 16 roky
location.c faacfd2eb2 libgis: add G_mapset_path() před 12 roky
ls.c 8bddad327f revert https://trac.osgeo.org/grass/changeset/53207 with better fix před 12 roky
ls_filter.c af2133adf1 Move regex/glob G__ls() filters into lib/gis před 15 roky
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev před 16 roky
make_loc.c 311392ebcb libgis: G_make_location() - check for legal name před 12 roky
make_mapset.c 311392ebcb libgis: G_make_location() - check for legal name před 12 roky
mapcase.c 09b7db1dd9 doxygen errors fixed před 12 roky
mapset.c faacfd2eb2 libgis: add G_mapset_path() před 12 roky
mapset_msc.c 2f2f700343 gislib: add some extra debug messages před 12 roky
mapset_nme.c 61e81887d6 Force current mapset to appear at front of mapset search path před 14 roky
myname.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) před 14 roky
named_colr.c 671e44225a Fix formatting of array initialisers před 17 roky
new_des db49180dd7 welcome to GRASS 7.0.svn před 17 roky
nl_to_spaces.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
nme_in_mps.c af91bdbb98 libgis: G_unqualified_name() accepts not specified mapset před 12 roky
open.c 2f2f700343 gislib: add some extra debug messages před 12 roky
open_misc.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) před 14 roky
overwrite.c 8ae109e2b9 vectlib: very initial direct OGR write support (v.external.out) před 14 roky
pager.c 1e26c862c8 Fix pager/mail functions před 15 roky
parser.c f5df7e42d1 libgis: typo in comment před 12 roky
parser_help.c 256a79d5f7 libgis: avoid segfault when opt->key is not defined před 14 roky
parser_html.c 0ccbb16eb1 Make --html-description output easier to parse před 13 roky
parser_interface.c b449f53816 Add suppress_required field to flags před 14 roky
parser_local_proto.h 2008e16620 add parse to return as output rest format před 13 roky
parser_rest.c f2d4da8614 improvements for restructeredtext parser před 13 roky
parser_script.c f8aaa2e6c2 libgis: G__script(): generate valid python script před 12 roky
parser_standard_options.c 9f68736e9d libgis: fix gisprompt for standardized options před 12 roky
parser_wps.c 88f0751f34 Space time raster and vector datasets supported. New mimetypes defined. před 13 roky
paths.c e5c82d3ac3 libgis: G_owner returns owner id před 12 roky
percent.c 6618b33b4f libgis: add G_progress() před 13 roky
pi.h db49180dd7 welcome to GRASS 7.0.svn před 17 roky
plot.c 7371783336 libgis: fix for AIX před 12 roky
pole_in_poly.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
popen.c 770e798241 G_spawn_ex() expects descriptors as "int"s, not "char*". před 15 roky
progrm_nme.c 5d366eb05b major gislib.dox update (still not complete, https://trac.osgeo.org/grass/changeset/37744) před 16 roky
proj1.c 225171cd49 libgis: G_database_unit_name() should return localized unit name před 14 roky
proj2.c 225171cd49 libgis: G_database_unit_name() should return localized unit name před 14 roky
proj3.c 225171cd49 libgis: G_database_unit_name() should return localized unit name před 14 roky
projections c7478c69d3 enable Geostationary Satellite View (merge from devbr6) před 15 roky
put_window.c ebfd5088d1 dox: region (window) functions doc improvements před 12 roky
putenv.c 5c454c7ad2 gislib: cosmetics in doxygen documentation před 14 roky
radii.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
rd_cellhd.c 1dba9b62d4 dox: fixing several doxygen warnings (wrong file names, typos, lt gt chars) před 13 roky
remove.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) před 14 roky
rename.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) před 14 roky
rhumbline.c c7041e9ca3 Remove unnecessary return values před 16 roky
rotate.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
seek.c 7cc2db1d68 libgis: cosmetics in doxygen desc před 14 roky
set_window.c ebfd5088d1 dox: region (window) functions doc improvements před 12 roky
short_way.c bc702cc96b major gislib.dox update (still not complete) před 16 roky
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
snprintf.c 06ad8336d1 Fix G_snprintf() to allow for bug in Windows vsnprintf() před 15 roky
spawn.c a049ea0396 Close handles after spawning child process před 13 roky
state27 db49180dd7 welcome to GRASS 7.0.svn před 17 roky
state83 db49180dd7 welcome to GRASS 7.0.svn před 17 roky
strings.c fdecd8f1be gislib: add G_strcasestr() před 14 roky
tempfile.c 2f2f700343 gislib: add some extra debug messages před 12 roky
timestamp.c 6ad43043a2 Timestamp support for vector layers added. před 13 roky
token.c 3d05792b0a avoid debug level 0 -- G_debug(0, ...) před 12 roky
trim_dec.c 8c1f95a84c Remove bogus return value from G_trim_decimal() před 16 roky
units.c 2ffbfcfe51 Fixed wrong plural unit definition před 13 roky
user_config.c 0d1953da13 lib/gis: LFS for wingrass před 15 roky
verbose.c 40a647c08a libgis: doxygen cosmetics (verbose.c) před 12 roky
view.c c7041e9ca3 Remove unnecessary return values před 16 roky
whoami.c 5d366eb05b major gislib.dox update (still not complete, https://trac.osgeo.org/grass/changeset/37744) před 16 roky
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
wind_2_box.c 88abdb3fab Eliminate G_copy(); replace with memcpy() or assignment před 15 roky
wind_format.c 687a3466a8 output correct precision for different projection types (bugs https://trac.osgeo.org/grass/ticket/654 and https://trac.osgeo.org/grass/ticket/335; merge from devbr6) před 16 roky
wind_in.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
wind_limits.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
wind_overlap.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ před 17 roky
wind_scan.c e96e0a6521 gislib: cosmetics in doxygen documentation před 14 roky
window_map.c e028cffb66 gislib: define G_unset_window() před 14 roky
worker.c e4164ed7e4 Add --with-pthread etc to configure script před 16 roky
wr_cellhd.c b96b38bfb6 Fixed wrong precision of top and bottom region storage. před 13 roky
writ_zeros.c c7041e9ca3 Remove unnecessary return values před 16 roky
xdr.c e493bb768f Add XDR functions for int před 12 roky
zero.c b06b8a0105 vectorlib: před 16 roky
zone.c bc702cc96b major gislib.dox update (still not complete) před 16 roky

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("Too 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.