Yann Chemin fd7fb9f9f9 improved Warning description 8 gadi atpakaļ
..
colors ff6ffc9f27 soilmoisture color table added 8 gadi atpakaļ
testsuite 1674ffe863 libgis: support also HTML/CSS hash hexadecimal colors in G_str_to_color() (missing docs) [news] 8 gadi atpakaļ
FIPS.code db49180dd7 welcome to GRASS 7.0.svn 17 gadi atpakaļ
G.h 0ae0be6386 Enable zlib compression by default (set GRASS_INT_ZLIB=0 to use RLE) 11 gadi atpakaļ
Makefile daf7f0ac28 add oldkey:newkey lookup table (https://trac.osgeo.org/grass/ticket/2049) 10 gadi atpakaļ
README.TYPE d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
adj_cellhd.c 22acc4e568 libgis: tell the value in the bad resolution error message 9 gadi atpakaļ
alloc.c 48b4f09d9d fix copyright initial year (from G6) 12 gadi atpakaļ
area.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
area_ellipse.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
area_poly1.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
area_poly2.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
area_sphere.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
ascii_chk.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
asprintf.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
basename.c 3ce9be90ba r.horizon: fix formatting string, see https://trac.osgeo.org/grass/ticket/2624 10 gadi atpakaļ
bres_line.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
clicker.c c313e28597 Bundle static variables into per-file structures 16 gadi atpakaļ
cmprbzip.c 3da035643b libgis: add more compression methods 9 gadi atpakaļ
cmprlz4.c 3da035643b libgis: add more compression methods 9 gadi atpakaļ
cmprrle.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
cmprzlib.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
color_rules.c f852a88bdc libgis: G__ls -> G_ls2 10 gadi atpakaļ
color_str.c 963a888573 libgis: set copyright year to latest change 8 gadi atpakaļ
colors.desc ff6ffc9f27 soilmoisture color table added 8 gadi atpakaļ
commas.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
compress.c e41059c9c7 libgis: improve compressor interface 9 gadi atpakaļ
compress.h 3a7bf960a4 generalize compression interface 9 gadi atpakaļ
copy_dir.c 2209cfeb1c libgis: doxygenize copy_dir.c 10 gadi atpakaļ
copy_file.c 070eaa1a92 msg typo: occured -> occurred 12 gadi atpakaļ
counter.c aff756a341 Fix G_is_initialized() for case of concurrent initialisation attempts 16 gadi atpakaļ
date.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
datum.c 1a84429e14 some fixes for 'error: format not a string literal and no format arguments [-Werror=format-security]' 12 gadi atpakaļ
datum.table dfb585564a libgis: register NAD83/2011 datum (EPSG:6543) 9 gadi atpakaļ
datumtransform.table 9e716d13f4 libproj: recognise NAD83(HARN) for NC; fix SIRGAS2000 datum; add explanations about datum management (contributed by Paul Kelly) 9 gadi atpakaļ
debug.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() 10 gadi atpakaļ
distance.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
done_msg.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
ellipse.table db49180dd7 welcome to GRASS 7.0.svn 17 gadi atpakaļ
ellipse.table.solar.system 6d61c04a2f removed tainted ellipsoids 11 gadi atpakaļ
endian.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
env.c 01f5cdead6 libgis: revert r67044:5 (it causing strange compilation problem with g.mkfontcap -s) 9 gadi atpakaļ
error.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
file_name.c 377f7a821c libgis: use HOST_DIRSEP in filenames (see https://trac.osgeo.org/grass/ticket/2712) 10 gadi atpakaļ
find_etc.c 09b7db1dd9 doxygen errors fixed 12 gadi atpakaļ
find_file.c 5410421be1 libgis: map (data element) found in more mapsets - turn warning into important message 8 gadi atpakaļ
find_rast.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
find_rast3d.c dc7822aafa G_find_grid3 moved from raster3d to gislib 14 gadi atpakaļ
find_vect.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
fmode.c 1acdd0be01 Build system clean-up 16 gadi atpakaļ
geodesic.c c7041e9ca3 Remove unnecessary return values 16 gadi atpakaļ
geodist.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
get_ellipse.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
get_projinfo.c 178c0b7fd0 libgis: G_get_projepsg() and G_database_epsg_code() 11 gadi atpakaļ
get_window.c b80f665b3a libgis: catch empty region file (suggested in https://lists.osgeo.org/pipermail/grass-dev/2015-August/075933.html) 9 gadi atpakaļ
getl.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
gis_local_proto.h cca863b4cf libgis: merge local_proto.h with gis_local_proto.h 10 gadi atpakaļ
gisbase.c bc702cc96b major gislib.dox update (still not complete) 16 gadi atpakaļ
gisdbase.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
gisinit.c a0501f4dcf libgis: set valid ZLIB compression level 8 gadi atpakaļ
gislib.dox d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
gislib_cmdline_parsing.dox 4fc018e782 Happy New Year 8 gadi atpakaļ
handler.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
home.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h 10 gadi atpakaļ
ilist.c 5120adf63f Fixed potential memory leak in integer list init, added new and free ilist functions. 11 gadi atpakaļ
intersect.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
is.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
key_value1.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
key_value2.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) 13 gadi atpakaļ
key_value3.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
key_value4.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
legal_name.c f5f03b13e1 G_legal_filename: Update a warning message to be more correct 10 gadi atpakaļ
line_dist.c c7041e9ca3 Remove unnecessary return values 16 gadi atpakaļ
list.c f852a88bdc libgis: G__ls -> G_ls2 10 gadi atpakaļ
ll_format.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
ll_scan.c 46b8911b62 libgis: partially revert https://trac.osgeo.org/grass/changeset/61851 10 gadi atpakaļ
locale.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
location.c 1f879e823a libgis: use HOST_DIRSEP in filenames (see https://trac.osgeo.org/grass/changeset/65639) 10 gadi atpakaļ
lrand48.c a099817b0d If GRASS_RANDOM_SEED is set, use it to seed the random generator when 8 gadi atpakaļ
ls.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
ls_filter.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
lz4.c 92a43d312b gislib: no C++ style comments in C code 9 gadi atpakaļ
lz4.h 09654e161d spelling errors (https://trac.osgeo.org/grass/ticket/2985) 9 gadi atpakaļ
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev 16 gadi atpakaļ
make_loc.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() 10 gadi atpakaļ
make_mapset.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() 10 gadi atpakaļ
mapcase.c 09b7db1dd9 doxygen errors fixed 12 gadi atpakaļ
mapset.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() 10 gadi atpakaļ
mapset_msc.c a1dfd3cf37 make GRASS data TMPDIR configurable (GRASS_TMPDIR_MAPSET && TMPDIR) 10 gadi atpakaļ
mapset_nme.c e0feb088dc libgis: Fixed function name in debug message 9 gadi atpakaļ
mkstemp.c 74fb4e5301 Add parentheses to avoid warning 11 gadi atpakaļ
myname.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
named_colr.c 671e44225a Fix formatting of array initialisers 17 gadi atpakaļ
new_des db49180dd7 welcome to GRASS 7.0.svn 17 gadi atpakaļ
nl_to_spaces.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
nme_in_mps.c a5f20635d6 G_unqualified_name: Correct the usage 10 gadi atpakaļ
open.c ac845cf713 libgis: construct path after the mapset has been determined 10 gadi atpakaļ
open_misc.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h 10 gadi atpakaļ
overwrite.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() 10 gadi atpakaļ
pager.c 1e26c862c8 Fix pager/mail functions 15 gadi atpakaļ
parser.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
parser_dependencies.c aae473eef1 libgis: improve doxygen documentation of parser_dependencies.c 10 gadi atpakaļ
parser_help.c 484d43ac31 parser: make --help shorter 8 gadi atpakaļ
parser_html.c 6545ca6b8c support d.northarrow in parser HTML, use filenames matching options, center drawing in image middle 9 gadi atpakaļ
parser_interface.c 84fa33ffa8 Add inter-dependency rules to --interface-description output 10 gadi atpakaļ
parser_local_proto.h 84fa33ffa8 Add inter-dependency rules to --interface-description output 10 gadi atpakaļ
parser_rest.c 214beac382 parser: use '--help' in manual pages rather than 'help' to promote use of standardized flag 10 gadi atpakaļ
parser_script.c 4197ed8748 scripts/parser: keywords -> keyword (old style remains accepted) 10 gadi atpakaļ
parser_standard_options.c ff9a83b163 parser: add standard option for 2D raster map type 9 gadi atpakaļ
parser_wps.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
paths.c 623c7b94ec simplify wingrass LFS 12 gadi atpakaļ
percent.c 6618b33b4f libgis: add G_progress() 13 gadi atpakaļ
pi.h db49180dd7 welcome to GRASS 7.0.svn 17 gadi atpakaļ
plot.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
pole_in_poly.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
popen.c 770e798241 G_spawn_ex() expects descriptors as "int"s, not "char*". 15 gadi atpakaļ
progrm_nme.c f820d866f5 parser: provide wxGUI forms.py with a full path if available (https://trac.osgeo.org/grass/ticket/2133) 9 gadi atpakaļ
proj1.c 3fc17c1072 remove unused PROJECTION_SP 10 gadi atpakaļ
proj2.c 501ec6aa98 -int G__projection_units(int); 10 gadi atpakaļ
proj3.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
projections c7478c69d3 enable Geostationary Satellite View (merge from devbr6) 15 gadi atpakaļ
put_window.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h 10 gadi atpakaļ
putenv.c 5c454c7ad2 gislib: cosmetics in doxygen documentation 14 gadi atpakaļ
radii.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
rd_cellhd.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h 10 gadi atpakaļ
remove.c a1dfd3cf37 make GRASS data TMPDIR configurable (GRASS_TMPDIR_MAPSET && TMPDIR) 10 gadi atpakaļ
rename.c a1dfd3cf37 make GRASS data TMPDIR configurable (GRASS_TMPDIR_MAPSET && TMPDIR) 10 gadi atpakaļ
renamed_options e56c9cad17 Renamed options/flags update for temporal modules 8 gadi atpakaļ
rhumbline.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
rotate.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
seek.c 7cc2db1d68 libgis: cosmetics in doxygen desc 14 gadi atpakaļ
set_window.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h 10 gadi atpakaļ
short_way.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
snprintf.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
spawn.c fd7fb9f9f9 improved Warning description 8 gadi atpakaļ
state27 db49180dd7 welcome to GRASS 7.0.svn 17 gadi atpakaļ
state83 db49180dd7 welcome to GRASS 7.0.svn 17 gadi atpakaļ
strings.c 9a3b60abd1 Patch for spelling errors, prepared by sebastic (see https://trac.osgeo.org/grass/ticket/3163) 8 gadi atpakaļ
tempfile.c 1cd8a9ef10 change GRASS_TMPDIR_MAPSET to be accepted only by vector library 10 gadi atpakaļ
timestamp.c 6f71886c6e libgis: G__write_timestamp() -> G_write_timestamp() 10 gadi atpakaļ
token.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
trim_dec.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
units.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
user_config.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
verbose.c 2b56d2452d Various typos (fixes https://trac.osgeo.org/grass/ticket/2882 Patch for various spelling errors (sebastic)) 9 gadi atpakaļ
view.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
whoami.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 gadi atpakaļ
wind_2_box.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
wind_format.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
wind_in.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
wind_limits.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
wind_overlap.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) 8 gadi atpakaļ
wind_scan.c 3fc17c1072 remove unused PROJECTION_SP 10 gadi atpakaļ
window_map.c e028cffb66 gislib: define G_unset_window() 14 gadi atpakaļ
worker.c 3500fb0a88 Set default workers to zero (threads only used by explicit request) 9 gadi atpakaļ
wr_cellhd.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
writ_zeros.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
xdr.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
zero.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ
zone.c 36233b8479 libgis: minor doxygen header updates 10 gadi atpakaļ

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 variable:
.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.