[GRASS-dev] libgis: G_FATAL_EXIT|PRINT|RETURN

Martin Landa landa.martin at gmail.com
Sat Apr 6 09:27:57 PDT 2013


Hi,

libgis defines

/* error codes */
#define G_FATAL_EXIT    0
#define G_FATAL_PRINT   1
#define G_FATAL_RETURN  2

These defines are used by a few functions, eg.
G_check_input_output_name(). Other candidates could eg.
Vect_open_old() and similar functions (eg. call G__error() when vector
map is not found). I would suggest to add G__error() and
G__set_error_code() just for internal use (see the attached path).

What do you think? Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgis_err_code.diff
Type: application/octet-stream
Size: 4661 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20130406/043f029e/attachment.obj>


More information about the grass-dev mailing list