[GRASS-dev] Re: [GRASS-SVN] r40881 - in grass/trunk: gui/wxpython/nviz gui/wxpython/vdigit lib/gis visualization/wximgview

Glynn Clements glynn at gclements.plus.com
Thu Feb 11 08:32:14 EST 2010


Markus Neteler wrote:

> > mmmph, we have no idea what functions people depend on in their
> > personal modules. We don't guarantee API compatibility, but
> > still it is not very nice to dump long serving functions in the
> > final part of a version's life ...
> 
> Could G_popen() be made a wrapper to popen()?

It could.

OTOH, anyone who was using it could just define macros, e.g.:

	CFLAGS='-DG_popen=popen -DG_pclose=pclose' ./configure ...

> (if it doesn't work on Windows, it is useful only to a fraction of
> operating systems).
> 
> I have searched around in GDAL and QGIS for the presence of G_popen()
> but did not find anything (except for complaints of non-portability). Checked
> also koders.com.

G_popen() wasn't being used in GRASS outside of lib/gis. Everything
else used popen().

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list