Anna Petrášová 4d56e10370 create standardized option for location and dbase, use it in r.proj, v.proj, g.mapset (merge from trunk, https://trac.osgeo.org/grass/changeset/64732) 10 years ago
..
colors db81d18fe6 adding some very simple mononchrome color tables for general usage 10 years ago
testsuite b7babee730 testsuite + doxygen: update for https://trac.osgeo.org/grass/changeset/63830 10 years ago
FIPS.code db49180dd7 welcome to GRASS 7.0.svn 17 years ago
G.h fd25af5813 Enable zlib compression by default (set GRASS_INT_ZLIB=0 to use RLE); Allow zlib compression to be set via GRASS_ZLIB_LEVEL environment variable; libgis: -1 is a valid compression level (Z_DEFAULT_COMPRESSION) (backport from trunk, https://trac.osgeo.org/grass/changeset/61380 + https://trac.osgeo.org/grass/changeset/61420 + https://trac.osgeo.org/grass/changeset/61422 + https://trac.osgeo.org/grass/changeset/61500) 10 years ago
Makefile 2e3d7f93b5 add oldkey:newkey lookup table (https://trac.osgeo.org/grass/ticket/2049) 10 years ago
README.TYPE 0265bfd52e spelling 13 years ago
adj_cellhd.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
alloc.c 48b4f09d9d fix copyright initial year (from G6) 12 years ago
area.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
area_ellipse.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
area_poly1.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
area_poly2.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
area_sphere.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
ascii_chk.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
asprintf.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
basename.c 45902d14cb Minor doxygen sync to trunk 10 years ago
bres_line.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
clicker.c c313e28597 Bundle static variables into per-file structures 16 years ago
color_rules.c 5a0e2afee9 libgis: G__ls -> G_ls2 10 years ago
color_str.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
colors.desc db81d18fe6 adding some very simple mononchrome color tables for general usage 10 years ago
commas.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
copy_dir.c 623c7b94ec simplify wingrass LFS 12 years ago
copy_file.c 070eaa1a92 msg typo: occured -> occurred 12 years ago
counter.c aff756a341 Fix G_is_initialized() for case of concurrent initialisation attempts 16 years ago
date.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
datum.c 1a84429e14 some fixes for 'error: format not a string literal and no format arguments [-Werror=format-security]' 12 years ago
datum.table 1087d8ad64 support ITRF_1992 datum 12 years ago
datumtransform.table 1087d8ad64 support ITRF_1992 datum 12 years ago
debug.c 9d2f2fd6a6 libgis: G__getenv() -> G_getenv_nofatal() 10 years ago
distance.c b620683d20 dox: segment library (unnecessary fn and SEG/seg mess) 12 years ago
done_msg.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
ellipse.table db49180dd7 welcome to GRASS 7.0.svn 17 years ago
ellipse.table.solar.system e4531aa905 Correction in Ganymede's minor radius from Alessandro Frigeri. 13 years ago
endian.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
env.c 9d2f2fd6a6 libgis: G__getenv() -> G_getenv_nofatal() 10 years ago
error.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
file_name.c 87da4ee948 libgis: dox cosmetics 12 years ago
find_etc.c 09b7db1dd9 doxygen errors fixed 12 years ago
find_file.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
find_rast.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
find_rast3d.c dc7822aafa G_find_grid3 moved from raster3d to gislib 13 years ago
find_vect.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
flate.c fd25af5813 Enable zlib compression by default (set GRASS_INT_ZLIB=0 to use RLE); Allow zlib compression to be set via GRASS_ZLIB_LEVEL environment variable; libgis: -1 is a valid compression level (Z_DEFAULT_COMPRESSION) (backport from trunk, https://trac.osgeo.org/grass/changeset/61380 + https://trac.osgeo.org/grass/changeset/61420 + https://trac.osgeo.org/grass/changeset/61422 + https://trac.osgeo.org/grass/changeset/61500) 10 years ago
fmode.c 1acdd0be01 Build system clean-up 16 years ago
geodesic.c c7041e9ca3 Remove unnecessary return values 16 years ago
geodist.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
get_ellipse.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
get_projinfo.c ee3ac8fb3d libgis: G_get_projepsg() and G_database_epsg_code() 11 years ago
get_window.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
getl.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
gis_local_proto.h faacfd2eb2 libgis: add G_mapset_path() 12 years ago
gisbase.c bc702cc96b major gislib.dox update (still not complete) 16 years ago
gisdbase.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
gisinit.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
gislib.dox b7babee730 testsuite + doxygen: update for https://trac.osgeo.org/grass/changeset/63830 10 years ago
gislib_cmdline_parsing.dox 05afcb2388 svn propset 10 years ago
handler.c ee734e99fb gislib: document error handlers 13 years ago
home.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
ilist.c 5120adf63f Fixed potential memory leak in integer list init, added new and free ilist functions. 11 years ago
intersect.c 066481a50a libgis: fix G_intersect_line_segments() (sync to trunk) 10 years ago
is.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
key_value1.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) 13 years ago
key_value2.c 745e71030a libgis: doxygen docs update (key_value_[1|2|3].c) 13 years ago
key_value3.c e841d781ac libgis: be more verbose when opening a file fails 11 years ago
key_value4.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
legal_name.c 281d0a2dee G_legal_filename: message merged from trunk, https://trac.osgeo.org/grass/changeset/62450 10 years ago
line_dist.c c7041e9ca3 Remove unnecessary return values 16 years ago
list.c 5a0e2afee9 libgis: G__ls -> G_ls2 10 years ago
ll_format.c ab082da4e0 Add "const" where appropriate to libgis return types 16 years ago
ll_scan.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 years ago
local_proto.h 85757a11ff libgis: G__read_gisrc_env() is used by testsuite 10 years ago
locale.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
location.c faacfd2eb2 libgis: add G_mapset_path() 12 years ago
lrand48.c 69e2fb6d6f RNG backport: Add portable lrand48 (etc) implementation (https://trac.osgeo.org/grass/changeset/61350); Generate fatal error if requesting values without having seeded (https://trac.osgeo.org/grass/changeset/61352); Replace rand/random/lrand48/etc with lib/gis random number functions (https://trac.osgeo.org/grass/changeset/61415); Use lib/gis PRNG for readcell() (https://trac.osgeo.org/grass/changeset/61416) 10 years ago
ls.c 5a0e2afee9 libgis: G__ls -> G_ls2 10 years ago
ls_filter.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
mach_name.c 474402cb81 Various MinGW bugfixes from Rosen Matev 16 years ago
make_loc.c 9d2f2fd6a6 libgis: G__getenv() -> G_getenv_nofatal() 10 years ago
make_mapset.c 9d2f2fd6a6 libgis: G__getenv() -> G_getenv_nofatal() 10 years ago
mapcase.c 09b7db1dd9 doxygen errors fixed 12 years ago
mapset.c 9d2f2fd6a6 libgis: G__getenv() -> G_getenv_nofatal() 10 years ago
mapset_msc.c 9aa7265ec8 libgis: G__make_mapset_element() -> G_make_mapset_element() 10 years ago
mapset_nme.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
mkstemp.c 74fb4e5301 Add parentheses to avoid warning 11 years ago
myname.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
named_colr.c 671e44225a Fix formatting of array initialisers 17 years ago
new_des db49180dd7 welcome to GRASS 7.0.svn 17 years ago
nl_to_spaces.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 years ago
nme_in_mps.c 45902d14cb Minor doxygen sync to trunk 10 years ago
open.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
open_misc.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
overwrite.c 9d2f2fd6a6 libgis: G__getenv() -> G_getenv_nofatal() 10 years ago
pager.c 1e26c862c8 Fix pager/mail functions 15 years ago
parser.c 9d2f2fd6a6 libgis: G__getenv() -> G_getenv_nofatal() 10 years ago
parser_dependencies.c e40733fa4c libgis (cosmetics): improve doxygen documentation of parser_dependencies.c 10 years ago
parser_help.c a64fb8b37a libgis: parser sync to trunk 10 years ago
parser_html.c 736df106be manual: keyword index HTML'ized 10 years ago
parser_interface.c 85f4a87598 Add inter-dependency rules to --interface-description output 10 years ago
parser_local_proto.h 85f4a87598 Add inter-dependency rules to --interface-description output 10 years ago
parser_rest.c a64fb8b37a libgis: parser sync to trunk 10 years ago
parser_script.c c497e96cf7 scripts/parser: keywords -> keyword (old style remains accepted) (trunk, https://trac.osgeo.org/grass/changeset/63871) 10 years ago
parser_standard_options.c 4d56e10370 create standardized option for location and dbase, use it in r.proj, v.proj, g.mapset (merge from trunk, https://trac.osgeo.org/grass/changeset/64732) 10 years ago
parser_wps.c b87e311e66 libgis parser_wps: ows:Abstract manual url update 10 years ago
paths.c 623c7b94ec simplify wingrass LFS 12 years ago
percent.c 6618b33b4f libgis: add G_progress() 13 years ago
pi.h db49180dd7 welcome to GRASS 7.0.svn 17 years ago
plot.c b52f487fda libgis: fix FPE error tolerance for plotting 11 years ago
pole_in_poly.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
popen.c 770e798241 G_spawn_ex() expects descriptors as "int"s, not "char*". 15 years ago
progrm_nme.c d1ba7aa72c libgis: trivial sync to trunk 10 years ago
proj1.c 27ef98a139 remove unused PROJECTION_SP (merge from trunk, https://trac.osgeo.org/grass/changeset/62061) 10 years ago
proj2.c 390f9f3ec9 libgis: G__projection_units() -> G_projection_units() 10 years ago
proj3.c 390f9f3ec9 libgis: G__projection_units() -> G_projection_units() 10 years ago
projections c7478c69d3 enable Geostationary Satellite View (merge from devbr6) 15 years ago
put_window.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
putenv.c 5c454c7ad2 gislib: cosmetics in doxygen documentation 14 years ago
radii.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
rd_cellhd.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
remove.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
rename.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
renamed_options fcc372df4a renamed_options: some missing entries added 10 years ago
rhumbline.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
rotate.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
seek.c 7cc2db1d68 libgis: cosmetics in doxygen desc 14 years ago
set_window.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
short_way.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
sleep.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 years ago
snprintf.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
spawn.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
state27 db49180dd7 welcome to GRASS 7.0.svn 17 years ago
state83 db49180dd7 welcome to GRASS 7.0.svn 17 years ago
strings.c d478d2cb7c libgis: sync G_chop() to trunk 10 years ago
tempfile.c 401fb98c91 move libgis-related G__ fns to local_proto.h 10 years ago
timestamp.c eb0de8199c libgis: G__write_timestamp() -> G_write_timestamp() 10 years ago
token.c 7dbe730f2b libgis: fix and simplify G_tokenize() 10 years ago
trim_dec.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
units.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
user_config.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
verbose.c 103dfa27fc libgis: fix G_set_verbose (missing initialization) 11 years ago
view.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
whoami.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
win32_pipes.c 8868d4b686 indent -bad -bap -bbb -br -bli0 -bls -cli0 -ncs -fc1 -hnl -i4 \ 17 years ago
wind_2_box.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
wind_format.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
wind_in.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
wind_limits.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
wind_overlap.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
wind_scan.c 27ef98a139 remove unused PROJECTION_SP (merge from trunk, https://trac.osgeo.org/grass/changeset/62061) 10 years ago
window_map.c e028cffb66 gislib: define G_unset_window() 14 years ago
worker.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
wr_cellhd.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
writ_zeros.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
xdr.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
zero.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago
zone.c 5d95f34d7e libgis: minor doxygen header updates (backport) 10 years ago

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.