Martin Landa fa5478be4d libgis: another attempt to clarify warning about renamed options пре 10 година
..
colors 030d3cbc6d libgis: add color rule precipitation_daily пре 10 година
testsuite 3d92370b9f libgis: Added tests for libgis пре 10 година
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 daf7f0ac28 add oldkey:newkey lookup table (https://trac.osgeo.org/grass/ticket/2049) пре 10 година
README.TYPE 0265bfd52e spelling пре 13 година
adj_cellhd.c ebfd5088d1 dox: region (window) functions doc improvements пре 12 година
alloc.c 48b4f09d9d fix copyright initial year (from G6) пре 12 година
area.c e5b3f74863 libgis: Fixed the description for G_area_of_polygon пре 11 година
area_ellipse.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
area_poly1.c 58014fe47b libgis/dox: verbatim for equations in G_ellipsoid_polygon_area пре 11 година
area_poly2.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
area_sphere.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
ascii_chk.c c7041e9ca3 Remove unnecessary return values пре 16 година
asprintf.c e0ca521985 libgis: fix vsnprintf usage in G_rasprintf пре 12 година
basename.c e0242d3a6b libgis: doxygen cosmetics пре 10 година
bres_line.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
clicker.c c313e28597 Bundle static variables into per-file structures пре 16 година
color_rules.c 1dba9b62d4 dox: fixing several doxygen warnings (wrong file names, typos, lt gt chars) пре 12 година
color_str.c 8db528aa65 color_str.c moved back to libgis (modules fixed) пре 16 година
colors.desc 030d3cbc6d libgis: add color rule precipitation_daily пре 10 година
commas.c c7041e9ca3 Remove unnecessary return values пре 16 година
copy_dir.c 623c7b94ec simplify wingrass LFS пре 12 година
copy_file.c 070eaa1a92 msg typo: occured -> occurred пре 11 година
counter.c aff756a341 Fix G_is_initialized() for case of concurrent initialisation attempts пре 16 година
date.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
datum.c 1a84429e14 some fixes for 'error: format not a string literal and no format arguments [-Werror=format-security]' пре 12 година
datum.table 1087d8ad64 support ITRF_1992 datum пре 12 година
datumtransform.table 1087d8ad64 support ITRF_1992 datum пре 12 година
debug.c 09b7db1dd9 doxygen errors fixed пре 12 година
distance.c b620683d20 dox: segment library (unnecessary fn and SEG/seg mess) пре 12 година
done_msg.c c7041e9ca3 Remove unnecessary return values пре 16 година
ellipse.table db49180dd7 welcome to GRASS 7.0.svn пре 17 година
ellipse.table.solar.system 6d61c04a2f removed tainted ellipsoids пре 11 година
endian.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
env.c 0b616af926 libgis: Added support to force the reading of VAR and gisrc files at runtime and tests. Discussed in ticket https://trac.osgeo.org/grass/ticket/2408. пре 10 година
error.c 61495c0a91 Add G_fatal_longjmp() пре 11 година
file_name.c 87da4ee948 libgis: dox cosmetics пре 12 година
find_etc.c 09b7db1dd9 doxygen errors fixed пре 12 година
find_file.c 81f7a58a6d Fix bug in https://trac.osgeo.org/grass/changeset/61840 пре 10 година
find_rast.c dc7822aafa G_find_grid3 moved from raster3d to gislib пре 13 година
find_rast3d.c dc7822aafa G_find_grid3 moved from raster3d to gislib пре 13 година
find_vect.c 3e65212312 libgis: debug G_find_raster/vector() пре 15 година
flate.c 46b8911b62 libgis: partially revert https://trac.osgeo.org/grass/changeset/61851 пре 10 година
fmode.c 1acdd0be01 Build system clean-up пре 16 година
geodesic.c c7041e9ca3 Remove unnecessary return values пре 16 година
geodist.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
get_ellipse.c f8f6ee0284 A correction of plural form text strings to use the new ngettext support пре 11 година
get_projinfo.c 178c0b7fd0 libgis: G_get_projepsg() and G_database_epsg_code() пре 11 година
get_window.c 09b7db1dd9 doxygen errors fixed пре 12 година
getl.c 46b8911b62 libgis: partially revert https://trac.osgeo.org/grass/changeset/61851 пре 10 година
gis_local_proto.h faacfd2eb2 libgis: add G_mapset_path() пре 12 година
gisbase.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
gisdbase.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
gisinit.c 46b8911b62 libgis: partially revert https://trac.osgeo.org/grass/changeset/61851 пре 10 година
gislib.dox d4c552ac46 gislib/dox: cmd line parsing doc updated, modernized and polished пре 11 година
gislib_cmdline_parsing.dox 214beac382 parser: use '--help' in manual pages rather than 'help' to promote use of standardized flag пре 10 година
handler.c ee734e99fb gislib: document error handlers пре 13 година
home.c b0ddd170bc doxygen header cosmetics пре 11 година
ilist.c 5120adf63f Fixed potential memory leak in integer list init, added new and free ilist functions. пре 11 година
intersect.c 31086b3b60 libgis: restore return codes for G_intersect_line_segments() пре 10 година
is.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
key_value1.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) пре 13 година
key_value2.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) пре 13 година
key_value3.c e841d781ac libgis: be more verbose when opening a file fails пре 11 година
key_value4.c 4a29361f14 Generate fatal errors rather than returning a status, for: пре 15 година
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 6357502fff libgis: rename env-related G__ used in the modules to G_ пре 11 година
ll_format.c ab082da4e0 Add "const" where appropriate to libgis return types пре 16 година
ll_scan.c 46b8911b62 libgis: partially revert https://trac.osgeo.org/grass/changeset/61851 пре 10 година
locale.c 8bfddec7d0 Introduce ngettext support and a new macro _n for it пре 11 година
location.c faacfd2eb2 libgis: add G_mapset_path() пре 12 година
lrand48.c 5437a8cf5f Add documentation comments пре 11 година
ls.c 8bddad327f revert https://trac.osgeo.org/grass/changeset/53207 with better fix пре 12 година
ls_filter.c cc97c6e441 G_ls_*_filter: Add case-insensitive option to the ls filters пре 10 година
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev пре 16 година
make_loc.c 311392ebcb libgis: G_make_location() - check for legal name пре 12 година
make_mapset.c 6357502fff libgis: rename env-related G__ used in the modules to G_ пре 11 година
mapcase.c 09b7db1dd9 doxygen errors fixed пре 12 година
mapset.c faacfd2eb2 libgis: add G_mapset_path() пре 12 година
mapset_msc.c 623c7b94ec simplify wingrass LFS пре 12 година
mapset_nme.c 6357502fff libgis: rename env-related G__ used in the modules to G_ пре 11 година
mkstemp.c 74fb4e5301 Add parentheses to avoid warning пре 11 година
myname.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) пре 14 година
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 09c16fd0db libgis: do not open non-existing files; add warning when opening a file failed пре 11 година
open_misc.c 09c16fd0db libgis: do not open non-existing files; add warning when opening a file failed пре 11 година
overwrite.c 8ae109e2b9 vectlib: very initial direct OGR write support (v.external.out) пре 14 година
pager.c 1e26c862c8 Fix pager/mail functions пре 15 година
parser.c fa5478be4d libgis: another attempt to clarify warning about renamed options пре 10 година
parser_dependencies.c 598421b52d lib/parser: more doxygen documentation пре 10 година
parser_help.c 3587d03cf0 libgis: document --ui flag пре 10 година
parser_html.c 2c1d781950 manual: keyword index HTML'ized пре 10 година
parser_interface.c 65eb6aeb10 parser: support --h and --help in wxGUI command line (trac https://trac.osgeo.org/grass/ticket/2152) пре 11 година
parser_local_proto.h daf7f0ac28 add oldkey:newkey lookup table (https://trac.osgeo.org/grass/ticket/2049) пре 10 година
parser_rest.c 214beac382 parser: use '--help' in manual pages rather than 'help' to promote use of standardized flag пре 10 година
parser_script.c f8aaa2e6c2 libgis: G__script(): generate valid python script пре 12 година
parser_standard_options.c b94dccf9c9 update keys to use new element names (https://trac.osgeo.org/grass/ticket/2409) пре 10 година
parser_wps.c 736151b08d version update: trunk is grass71 пре 11 година
paths.c 623c7b94ec simplify wingrass LFS пре 12 година
percent.c 6618b33b4f libgis: add G_progress() пре 13 година
pi.h db49180dd7 welcome to GRASS 7.0.svn пре 17 година
plot.c b52f487fda libgis: fix FPE error tolerance for plotting пре 11 година
pole_in_poly.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
popen.c 770e798241 G_spawn_ex() expects descriptors as "int"s, not "char*". пре 15 година
progrm_nme.c 5e6ec9ef04 libgis: strip also .py extension from program name пре 10 година
proj1.c 3fc17c1072 remove unused PROJECTION_SP пре 10 година
proj2.c 3fc17c1072 remove unused PROJECTION_SP пре 10 година
proj3.c 3fc17c1072 remove unused PROJECTION_SP пре 10 година
projections c7478c69d3 enable Geostationary Satellite View (merge from devbr6) пре 15 година
put_window.c ebfd5088d1 dox: region (window) functions doc improvements пре 12 година
putenv.c 5c454c7ad2 gislib: cosmetics in doxygen documentation пре 14 година
radii.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
rd_cellhd.c 1dba9b62d4 dox: fixing several doxygen warnings (wrong file names, typos, lt gt chars) пре 12 година
remove.c 623c7b94ec simplify wingrass LFS пре 12 година
rename.c 13a759b8fc G__find_name* renamed to G_find_file* (used outside of the library) пре 14 година
renamed_options e426fdb02e v.external: dsn -> input пре 10 година
rhumbline.c c7041e9ca3 Remove unnecessary return values пре 16 година
rotate.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
seek.c 7cc2db1d68 libgis: cosmetics in doxygen desc пре 14 година
set_window.c ebfd5088d1 dox: region (window) functions doc improvements пре 12 година
short_way.c bc702cc96b major gislib.dox update (still not complete) пре 16 година
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
snprintf.c 06ad8336d1 Fix G_snprintf() to allow for bug in Windows vsnprintf() пре 15 година
spawn.c a049ea0396 Close handles after spawning child process пре 13 година
state27 db49180dd7 welcome to GRASS 7.0.svn пре 17 година
state83 db49180dd7 welcome to GRASS 7.0.svn пре 17 година
strings.c 9dba01d89c libgis: optimize G_chop() пре 10 година
tempfile.c 2f2f700343 gislib: add some extra debug messages пре 12 година
timestamp.c 6ad43043a2 Timestamp support for vector layers added. пре 13 година
token.c d91429272f libgis: fix and simplify G_tokenize() пре 10 година
trim_dec.c 8c1f95a84c Remove bogus return value from G_trim_decimal() пре 15 година
units.c 4d786676e1 add support for us survey foot, https://trac.osgeo.org/grass/ticket/2417 пре 10 година
user_config.c 623c7b94ec simplify wingrass LFS пре 12 година
verbose.c 1529d7f504 libgis: fix G_set_verbose (missing initialization) пре 11 година
view.c c7041e9ca3 Remove unnecessary return values пре 16 година
whoami.c 5d366eb05b major gislib.dox update (still not complete, https://trac.osgeo.org/grass/changeset/37744) пре 16 година
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
wind_2_box.c 88abdb3fab Eliminate G_copy(); replace with memcpy() or assignment пре 15 година
wind_format.c 46b8911b62 libgis: partially revert https://trac.osgeo.org/grass/changeset/61851 пре 10 година
wind_in.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
wind_limits.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
wind_overlap.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ пре 17 година
wind_scan.c 3fc17c1072 remove unused PROJECTION_SP пре 10 година
window_map.c e028cffb66 gislib: define G_unset_window() пре 14 година
worker.c e4164ed7e4 Add --with-pthread etc to configure script пре 16 година
wr_cellhd.c b96b38bfb6 Fixed wrong precision of top and bottom region storage. пре 13 година
writ_zeros.c c7041e9ca3 Remove unnecessary return values пре 16 година
xdr.c e493bb768f Add XDR functions for int пре 12 година
zero.c b06b8a0105 vectorlib: пре 16 година
zone.c bc702cc96b major gislib.dox update (still not complete) пре 16 година

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.