Anna Petrasova c825479df7 fix tests for Python 3 пре 6 година
..
colors 313aa35205 add inferno, magma and plasma color tables (closes https://trac.osgeo.org/grass/ticket/3371, thanks to pierreroudier) пре 6 година
testsuite c825479df7 fix tests for Python 3 пре 6 година
FIPS.code db49180dd7 welcome to GRASS 7.0.svn пре 17 година
G.h 0ae0be6386 Enable zlib compression by default (set GRASS_INT_ZLIB=0 to use RLE) пре 11 година
Makefile 35d350051d add ZSTD (Zstandard) compression to the Make system пре 7 година
README.TYPE d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
adj_cellhd.c 158a6f2a5a bulk fixing of typos in comments (using tools/fix_typos.sh) пре 6 година
alloc.c 48b4f09d9d fix copyright initial year (from G6) пре 13 година
area.c 36233b8479 libgis: minor doxygen header updates пре 10 година
area_ellipse.c 36233b8479 libgis: minor doxygen header updates пре 10 година
area_poly1.c 5cf0f4c431 libgis: stabilize G_ellipsoid_polygon_area() пре 8 година
area_poly2.c 36233b8479 libgis: minor doxygen header updates пре 10 година
area_sphere.c 36233b8479 libgis: minor doxygen header updates пре 10 година
ascii_chk.c 36233b8479 libgis: minor doxygen header updates пре 10 година
asprintf.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
basename.c a8382f8cff libgis: fix https://trac.osgeo.org/grass/changeset/73981 пре 6 година
bres_line.c 36233b8479 libgis: minor doxygen header updates пре 10 година
clicker.c c313e28597 Bundle static variables into per-file structures пре 16 година
cmprbzip.c 1ca54bb823 libgis: more informative messages when (de)compression fails пре 7 година
cmprlz4.c 1ca54bb823 libgis: more informative messages when (de)compression fails пре 7 година
cmprrle.c 70f29a0a3d libgis: add ZSTD (Zstandard) compression пре 7 година
cmprzlib.c 1ca54bb823 libgis: more informative messages when (de)compression fails пре 7 година
cmprzstd.c 1ca54bb823 libgis: more informative messages when (de)compression fails пре 7 година
color_rules.c f3d15d7228 libgis: +G_color_rules_description_type(), +G_list_color_rules_description_type() пре 7 година
color_str.c 963a888573 libgis: set copyright year to latest change пре 8 година
colors.desc 313aa35205 add inferno, magma and plasma color tables (closes https://trac.osgeo.org/grass/ticket/3371, thanks to pierreroudier) пре 6 година
commas.c 36233b8479 libgis: minor doxygen header updates пре 10 година
compress.c 67ecc48337 libgis: add warnings when writing compressed data fails пре 7 година
compress.h 70f29a0a3d libgis: add ZSTD (Zstandard) compression пре 7 година
copy_dir.c 2209cfeb1c libgis: doxygenize copy_dir.c пре 10 година
copy_file.c 070eaa1a92 msg typo: occured -> occurred пре 12 година
counter.c aff756a341 Fix G_is_initialized() for case of concurrent initialisation attempts пре 16 година
date.c 36233b8479 libgis: minor doxygen header updates пре 10 година
datum.c 1a84429e14 some fixes for 'error: format not a string literal and no format arguments [-Werror=format-security]' пре 12 година
datum.table dfb585564a libgis: register NAD83/2011 datum (EPSG:6543) пре 9 година
datumtransform.table 9e716d13f4 libproj: recognise NAD83(HARN) for NC; fix SIRGAS2000 datum; add explanations about datum management (contributed by Paul Kelly) пре 9 година
debug.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() пре 10 година
distance.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
done_msg.c 36233b8479 libgis: minor doxygen header updates пре 10 година
ellipse.table db49180dd7 welcome to GRASS 7.0.svn пре 17 година
ellipse.table.solar.system 6d61c04a2f removed tainted ellipsoids пре 11 година
endian.c 36233b8479 libgis: minor doxygen header updates пре 10 година
env.c 01f5cdead6 libgis: revert r67044:5 (it causing strange compilation problem with g.mkfontcap -s) пре 9 година
error.c 9b61d2e668 libgis: use G_vasprintf() to avoid buffer overflow пре 7 година
file_name.c 377f7a821c libgis: use HOST_DIRSEP in filenames (see https://trac.osgeo.org/grass/ticket/2712) пре 10 година
find_etc.c 09b7db1dd9 doxygen errors fixed пре 12 година
find_file.c 5410421be1 libgis: map (data element) found in more mapsets - turn warning into important message пре 8 година
find_rast.c 36233b8479 libgis: minor doxygen header updates пре 10 година
find_rast3d.c dc7822aafa G_find_grid3 moved from raster3d to gislib пре 14 година
find_vect.c 36233b8479 libgis: minor doxygen header updates пре 10 година
fmode.c 1acdd0be01 Build system clean-up пре 16 година
geodesic.c c7041e9ca3 Remove unnecessary return values пре 16 година
geodist.c 36233b8479 libgis: minor doxygen header updates пре 10 година
get_ellipse.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
get_projinfo.c 15f13b0333 libgis: get srid for proj_create_crs_to_crs() пре 6 година
get_window.c b80f665b3a libgis: catch empty region file (suggested in https://lists.osgeo.org/pipermail/grass-dev/2015-August/075933.html) пре 10 година
getl.c 36233b8479 libgis: minor doxygen header updates пре 10 година
gis_local_proto.h cca863b4cf libgis: merge local_proto.h with gis_local_proto.h пре 10 година
gisbase.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
gisdbase.c 36233b8479 libgis: minor doxygen header updates пре 10 година
gisinit.c a0501f4dcf libgis: set valid ZLIB compression level пре 8 година
gislib.dox d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
gislib_cmdline_parsing.dox dc5017262b Happy New Year пре 6 година
handler.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
home.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h пре 10 година
ilist.c 5120adf63f Fixed potential memory leak in integer list init, added new and free ilist functions. пре 11 година
intersect.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
is.c 36233b8479 libgis: minor doxygen header updates пре 10 година
key_value1.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
key_value2.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) пре 13 година
key_value3.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
key_value4.c 36233b8479 libgis: minor doxygen header updates пре 10 година
legal_name.c f5f03b13e1 G_legal_filename: Update a warning message to be more correct пре 10 година
line_dist.c c7041e9ca3 Remove unnecessary return values пре 16 година
list.c f852a88bdc libgis: G__ls -> G_ls2 пре 10 година
ll_format.c 08bf434bd7 libgis: do not wrap to -180,180 пре 8 година
ll_scan.c 7855552114 libgis: relax ll restrictions when reading DMS coords пре 8 година
locale.c 36233b8479 libgis: minor doxygen header updates пре 10 година
location.c 1f879e823a libgis: use HOST_DIRSEP in filenames (see https://trac.osgeo.org/grass/changeset/65639) пре 10 година
lrand48.c a099817b0d If GRASS_RANDOM_SEED is set, use it to seed the random generator when пре 8 година
ls.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
ls_filter.c 36233b8479 libgis: minor doxygen header updates пре 10 година
lz4.c 158a6f2a5a bulk fixing of typos in comments (using tools/fix_typos.sh) пре 6 година
lz4.h 8759320f63 libgis: update to lz4-1.8.2 пре 7 година
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev пре 16 година
make_loc.c 51e3df900b libgis: +G_make_location_epsg() пре 7 година
make_mapset.c 3255999f82 libgis: LOCATION -> LOCATION_NAME in G_make_mapset(), fixes https://trac.osgeo.org/grass/ticket/2040 пре 6 година
mapcase.c 09b7db1dd9 doxygen errors fixed пре 12 година
mapset.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() пре 10 година
mapset_msc.c a1dfd3cf37 make GRASS data TMPDIR configurable (GRASS_TMPDIR_MAPSET && TMPDIR) пре 10 година
mapset_nme.c e0feb088dc libgis: Fixed function name in debug message пре 9 година
mkstemp.c 74fb4e5301 Add parentheses to avoid warning пре 11 година
myname.c 36233b8479 libgis: minor doxygen header updates пре 10 година
named_colr.c 671e44225a Fix formatting of array initialisers пре 17 година
new_des db49180dd7 welcome to GRASS 7.0.svn пре 17 година
nl_to_spaces.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
nme_in_mps.c a5f20635d6 G_unqualified_name: Correct the usage пре 10 година
open.c ac845cf713 libgis: construct path after the mapset has been determined пре 10 година
open_misc.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h пре 10 година
overwrite.c cc77b8dc34 libgis: G__getenv() -> G_getenv_nofatal() пре 10 година
pager.c 1e26c862c8 Fix pager/mail functions пре 15 година
parser.c 8c7e1c5874 Fixed bug in parser introduced with https://trac.osgeo.org/grass/changeset/73525 and https://trac.osgeo.org/grass/changeset/73561 пре 6 година
parser_dependencies.c 15d1d33d7e libgis: message cosmetics in parser dependecies пре 6 година
parser_help.c 484d43ac31 parser: make --help shorter пре 8 година
parser_html.c 030cd54b0b libgis: add missing space to G__usage_html() пре 8 година
parser_interface.c 84fa33ffa8 Add inter-dependency rules to --interface-description output пре 10 година
parser_json.c 6203dd1f8b Added tests to the GRASS GIS JSON parser пре 6 година
parser_local_proto.h c646680beb Added actinia JSON compatible output to the GRASS parser for any module пре 6 година
parser_rest.c 214beac382 parser: use '--help' in manual pages rather than 'help' to promote use of standardized flag пре 10 година
parser_script.c 4a3333b0bb libgis: fix multiple keywords in script template пре 7 година
parser_standard_options.c 9a08edfbde parser: complete addition of G_OPT_STRDS_OUTPUTS, fixes https://trac.osgeo.org/grass/changeset/74118 (trac https://trac.osgeo.org/grass/ticket/3742) пре 6 година
parser_wps.c 04157af89b version bump: grass76 -> grass77 related updates пре 6 година
paths.c 623c7b94ec simplify wingrass LFS пре 12 година
percent.c 291b94a5be G_progress() does not support GRASS_MESSAGE_FORMAT=gui, fixes https://trac.osgeo.org/grass/ticket/2751 пре 6 година
pi.h db49180dd7 welcome to GRASS 7.0.svn пре 17 година
plot.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
pole_in_poly.c 36233b8479 libgis: minor doxygen header updates пре 10 година
popen.c 770e798241 G_spawn_ex() expects descriptors as "int"s, not "char*". пре 15 година
progrm_nme.c f820d866f5 parser: provide wxGUI forms.py with a full path if available (https://trac.osgeo.org/grass/ticket/2133) пре 9 година
proj1.c 3fc17c1072 remove unused PROJECTION_SP пре 10 година
proj2.c 501ec6aa98 -int G__projection_units(int); пре 10 година
proj3.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
projections c7478c69d3 enable Geostationary Satellite View (merge from devbr6) пре 15 година
put_window.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h пре 10 година
putenv.c 5c454c7ad2 gislib: cosmetics in doxygen documentation пре 14 година
radii.c 36233b8479 libgis: minor doxygen header updates пре 10 година
rd_cellhd.c bcd7779fe8 libgis, G__read_Cell_head_array(): more informative error messages (fix https://trac.osgeo.org/grass/changeset/40698) пре 8 година
remove.c a1dfd3cf37 make GRASS data TMPDIR configurable (GRASS_TMPDIR_MAPSET && TMPDIR) пре 10 година
rename.c a1dfd3cf37 make GRASS data TMPDIR configurable (GRASS_TMPDIR_MAPSET && TMPDIR) пре 10 година
renamed_options e56c9cad17 Renamed options/flags update for temporal modules пре 8 година
rhumbline.c 36233b8479 libgis: minor doxygen header updates пре 10 година
rotate.c 36233b8479 libgis: minor doxygen header updates пре 10 година
seek.c f6b0f3aad4 libgis: report reason if unable to seek пре 6 година
set_window.c cca863b4cf libgis: merge local_proto.h with gis_local_proto.h пре 10 година
short_way.c 36233b8479 libgis: minor doxygen header updates пре 10 година
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
snprintf.c 36233b8479 libgis: minor doxygen header updates пре 10 година
spawn.c 857fb7bb8f libgis: do_spawn() notify which command failed and why пре 6 година
state27 db49180dd7 welcome to GRASS 7.0.svn пре 17 година
state83 db49180dd7 welcome to GRASS 7.0.svn пре 17 година
strings.c 9a3b60abd1 Patch for spelling errors, prepared by sebastic (see https://trac.osgeo.org/grass/ticket/3163) пре 8 година
tempfile.c 1cd8a9ef10 change GRASS_TMPDIR_MAPSET to be accepted only by vector library пре 10 година
timestamp.c 6f71886c6e libgis: G__write_timestamp() -> G_write_timestamp() пре 10 година
token.c d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) пре 8 година
trim_dec.c 36233b8479 libgis: minor doxygen header updates пре 10 година
units.c 36233b8479 libgis: minor doxygen header updates пре 10 година
user_config.c 36233b8479 libgis: minor doxygen header updates пре 10 година
verbose.c 2b56d2452d Various typos (fixes https://trac.osgeo.org/grass/ticket/2882 Patch for various spelling errors (sebastic)) пре 9 година
view.c 36233b8479 libgis: minor doxygen header updates пре 10 година
whoami.c 36233b8479 libgis: minor doxygen header updates пре 10 година
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
wind_2_box.c 36233b8479 libgis: minor doxygen header updates пре 10 година
wind_format.c 36233b8479 libgis: minor doxygen header updates пре 10 година
wind_in.c 36233b8479 libgis: minor doxygen header updates пре 10 година
wind_limits.c 36233b8479 libgis: minor doxygen header updates пре 10 година
wind_overlap.c 12b23b92e2 libgis, G_window_percentage_overlap(): account for N == S or E == W пре 8 година
wind_scan.c 389f087644 libgis: always check if res > 0 пре 8 година
window_map.c ee01a8edf4 libgis: fix G_adjust_east_longitude() and G_adjust_easting() пре 8 година
worker.c 3500fb0a88 Set default workers to zero (threads only used by explicit request) пре 9 година
wr_cellhd.c 36233b8479 libgis: minor doxygen header updates пре 10 година
writ_zeros.c 36233b8479 libgis: minor doxygen header updates пре 10 година
xdr.c 36233b8479 libgis: minor doxygen header updates пре 10 година
zero.c 36233b8479 libgis: minor doxygen header updates пре 10 година
zone.c 36233b8479 libgis: minor doxygen header updates пре 10 година

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.