extern "C" fixes for sunCC
Tom Tromey
tromey@redhat.com
Thu Jan 3 17:28:00 GMT 2013
>>>>> "Marc" == Marc Glisse <marc.glisse@inria.fr> writes:
Marc> Do you prefer an other approach?
No, this is fine, just yucky.
Marc> Like this? (I'll test if approved, but I am not sure what was wrong
Marc> with the indentation and parentheses so it may be wrong again)
>From the node 'Formatting' in the GCS:
Insert extra parentheses so that Emacs will indent the code properly.
For example, the following indentation looks nice if you do it by hand,
v = rup->ru_utime.tv_sec*1000 + rup->ru_utime.tv_usec/1000
+ rup->ru_stime.tv_sec*1000 + rup->ru_stime.tv_usec/1000;
but Emacs would alter it. Adding a set of parentheses produces
something that looks equally nice, and which Emacs will preserve:
v = (rup->ru_utime.tv_sec*1000 + rup->ru_utime.tv_usec/1000
+ rup->ru_stime.tv_sec*1000 + rup->ru_stime.tv_usec/1000);
The comments seem fine.
It is ok with the formatting fixed.
Tom
More information about the Gcc-patches
mailing list