[GRASS-dev] Re: [GRASS-user] Problems with v.outlier and v.lidar.edgedetection

Glynn Clements glynn at gclements.plus.com
Fri Nov 17 15:15:33 EST 2006


Roberto Antolin wrote:

> >>C question re that fix:   (vector/lidar/v.outlier/main.c)
> >>
> >>    /* Structs' declarations */
> >>    struct Map_info In, Out, Outlier, Qgis;
> >>    struct Option *in_opt, *out_opt, *outlier_opt, *qgis_opt, *passoE_opt, *passoN_opt, \
> >>	*lambda_f_opt, *Thres_O_opt;
> >>
> >>
> >>is the end of line "\" harmful or treated like whitespace?
> 
> I allways use this "\" to break a long code line into two or more parts. 
> I think that, in this way, the code is more readable. I've never had any 
> problem with that and I didn't know it was no neccesary with gcc. But, 
> could some body tell me if there are compilation problems with that? In 
> that case, I have to clean it.

It's unnecessary in any C compiler. Outside of preprocessor
directives, C++-style comments (//) and string or character literals,
you can use a newline anywhere that you can use a space.

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




More information about the grass-dev mailing list