[GRASS5] Color prompt partially implemented, color confusion.

Glynn Clements glynn at gclements.plus.com
Tue Apr 18 11:10:15 EDT 2006


Cedric Shock wrote:

> Which would allow great simplifications to driver code of something like this:
> 
> for (colorindex = 1; colorindex <= MAX_COLOR_NUM; colorindex++) {
>   LIB_assign_standard_color(colorindex, DRV_lookup_color(
>     standard_color_rgb[colorindex][0],
>     standard_color_rgb[colorindex][1],
>     standard_color_rgb[colorindex][2]));	
> }

One note about source code: tab stops are every 8 columns. If your
editor is set to use something else, you need to change it when
editing GRASS source code, otherwise the formatting will get screwed
up.

The indentation width is a different matter. There isn't (yet) an
agreed standard; for existing files, you should follow whichever
convention(s) the source file is already using.

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




More information about the grass-dev mailing list