[GRASS-dev] making grass modules less verbose

Jachym Cepicky jachym.cepicky at centrum.cz
Sat Sep 23 03:04:23 EDT 2006


On Fri, Sep 22, 2006 at 11:11:35PM +0000, Brad Douglas wrote:
> > 
> G_message("\n") = '\n\n' on screen.  G_message(" ") seems a bit obscure.
> But yes, that particular problem would go away, but potentially creating
> a new one.
> 
> Also, in loops outputting text, G_message() is generally not desirable
> because of it's "auto-CR" feature.
> 
> Would be better to add a function [eg. G_message2()] that does not
> automatically append '\n' to text?

This should occure in only few cases, because loops are mostly used not
for messages, but for printing results of calculation.

The results are not "messages", program is not "verbose", if it prints
results, so printf should be used.

IMHO there is no need for G_message2()

Jachym
-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------   
OFFICE:                                     
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky at gdf-hannover.de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060923/1be3437c/attachment.bin


More information about the grass-dev mailing list