[GRASS-dev] small patch for lib/vector/transform/

Dylan Beaudette dylan.beaudette at gmail.com
Mon Jun 4 12:51:32 EDT 2007


On Monday 04 June 2007 01:14, Hamish wrote:
> Dylan:
> > > good call, that was definitely bad style on my part. Instead of
> > > debug, a flag  might be a good option?
>
> Glynn:
> > Within the module, you can use G_verbose_message() for messages which
> > should only printed when --verbose is used. Or you could add a
> > specific flag.
>
> Output intended to be parsable should use fprintf(stdout, "..." ,,,);

This looks like the best approach: however, I am getting a compile error 
on 'stdout' not being defined... ideas?

> G_*_message() and G_debug() will output to stderr and are more for
> messages than outputing data.
>
>
> A flag for output is a nice idea, whichever stdout or stderr you feel is
> more appropriate.
>

I have implemented it as a flag. Patch is attached

If this looks ok, I can re-submit it to the grass tracker

thanks!


-- 
Dylan Beaudette
Soils and Biogeochemistry Graduate Group
University of California at Davis
530.754.7341
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v.transform.patch
Type: text/x-diff
Size: 4420 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20070604/2ed3285a/v.transform.bin


More information about the grass-dev mailing list