<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi all, <br>
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.<br>
<br>
Regards,<br>
Roberto.<br>
<br>
<blockquote cite="mid200611170728.kAH7SPO1027891@grass.itc.it"
type="cite">
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap=""><!---->
It's interpreted as string literal concatenation. In my experience,
it's useful with strings:
Okay for gcc:
fprintf(stderr, "blah blah"
"more blah blah");
More appropriate:
fprintf(stderr, "blah blah" \
"more blah blah");
I'm sure Glynn has details, but that is my understanding. I don't know
if the same issues apply with variable declaration, but it isn't
necessary at least with gcc.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Roberto Antolín Sánchez
Politecnico di Milano – Polo Regionale di Como
(Laboratorio di Geomatica V2.8)
Via Valleggio, 11 – 22100 Como, Italy
tel: +39 031 332 7533 || fax: +39 031 332 7519
email: <a class="moz-txt-link-abbreviated" href="mailto:roberto.antolin@polimi.it">roberto.antolin@polimi.it</a>
</pre>
</body>
</html>