Re: Problem in Strdup()




"pete" <pfiland@xxxxxxxxxxxxxx> wrote in message
news:431445A5.20A@xxxxxxxxxxxxxxxxx
> Mark B wrote:
>>
>> "pete" <pfiland@xxxxxxxxxxxxxx> wrote in message
>
>> > I prefer to separate declarations from statements
>> > with a blank line in compound statements
>> > because it's a common convention.
>>
>> Yet you liked Keith's code which omitted it? :-)
>
> Yes.
> I didn't say it was perfect.
>
>> In general I also tend to seperate my declarations from the first
>> statement with a blank line, but for no other reason than for
>> code aesthetics (yes, I think it looks nice).
>>
>> But: if I'm writing a 2 line function which consists of:
>> 1) a function call to initialize a variable in its declaration
>> 2) a return statement
>>
>> I consider 1 to be a statement
>> which no longer requires
>> a blank line to seperating it from the only other statement
>> in the function... call me silly :-)
>
> Then you are wrong.
> Declarations and definitions and are not statements.

Nor did I mean to claim that it actually was a statement...
I was implying that I would treat that particular declaration as if it were
a statement.
In retrospect, I should have left the last part of the post off completely
as I'd already
(appropriately) stated that for me personally I separate declarations from
statements
for code aesthetics, and no other reason. When it looks better with a blank
line, it
gets a blank line...

Can I assume (based on the fact that you snipped about 90% of my previous
post)
that you agreed with everything else I had written?

Mark


.



Relevant Pages

  • Re: scope of variables
    ... > Mark L nous racontait que: ... >> If I have VBA code in a Word document which is using a module, ... >> Module declarations, but I think these are not being made available ...
    (microsoft.public.word.vba.general)
  • [PATCH] char: static functions and integer as NULL pointer fixes in epca.c
    ... Forward declarations were already marked static, ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Memory usage
    ... Is there any difference in memory footprint between the 2 following ... TIA, ... Mark ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Problem in Strdup()
    ... >> with a blank line in compound statements ... > In general I also tend to seperate my declarations from the first ... > code aesthetics ...
    (comp.lang.c)