[GRASS-dev] Some simple questions about coding style.

Maris Nartiss maris.gis at gmail.com
Mon Oct 15 15:06:04 EDT 2007


Hi all,
I was looking at g.copy source and now I have some simple questions:
1) Is it safe to pass int to G_calloc(), as it expects size_t?
2) Is it safe to G_malloc() fixed amount for parser's option
description? (opt->description)
3) Why G_warning isn't a viod function? It always returns 0 and none
of GRASS modules performs check for it's return value.

Thanks for answers to GRASS C guru's.
Maris.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: manage.patch
Type: text/x-diff
Size: 4730 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20071015/5c29e030/manage.bin


More information about the grass-dev mailing list