[GRASS-dev] G__ in public API

Martin Landa landa.martin at gmail.com
Wed Jun 11 11:07:25 PDT 2014


2014-06-11 13:00 GMT+02:00 Glynn Clements <glynn at gclements.plus.com>:

> It's probably an exaggeration to say that G__ functions are "internal
> use only". It's closer to "this is (probably) not the function you
> should be using". Typically, it indicates a lower-level function which
> is "primarily" for internal use.
>
> There does seem to be some excessive use of G__ names (e.g.
> lib/gis/env.c). But I wouldn't go so far as to say that G__ names
> should *never* be used for functions which are used externaly,
> particularly if such use is limited to a few specialised modules.

sure, but there are not few...

$ grep 'G__' * -R --include=*.c | grep -v ^lib | cut -d: -f1 | cut -d
'/' -f2 | sort | uniq | wc -l
40

Martin

-- 
Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa


More information about the grass-dev mailing list