[GRASS-dev] Vect_*_fatal_error()

Martin Landa landa.martin at gmail.com
Thu Nov 10 04:51:51 EST 2011


Hi all,

the vector library still uses in GRASS7 GV_FATAL_EXIT/PRINT/RETURN
defines, see Vect_set_fatal_error() for details. It was introduced in
r10426.

I know that this topic "G_fatal_error() and exit() call" has been
discussed several times in the past. The GRASS libraries has been
designed for Unix-like modules, which just starts, do processing and
terminates. This absolutely acceptable reason why G_fatal_error()
should call exit() when fatal_error appears. On the other hand I still
think that the programmer should have some possibility to avoid
calling exit() on G_fatal_error() of course on his/her own risk.
Anyway this option should be there with BIG warning at least but it
should be there...

Please review the attach patch which moves Vect_*_fatal_error() to the gislib.

Martin

[1] http://trac.osgeo.org/grass/changeset/10426/grass/trunk/lib/vector/Vlib/error.c

-- 
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fatal_error.diff
Type: text/x-diff
Size: 2581 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20111110/36ed5eb6/fatal_error-0001.bin


More information about the grass-dev mailing list