This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Deprecating GCC extensions...
- To: gcc at gcc dot gnu dot org
- Subject: Re: Deprecating GCC extensions...
- From: Per Abrahamsen <abraham at dina dot kvl dot dk>
- Date: 05 Mar 2001 21:36:46 +0100
- Organization: The Church of Emacs
- References: <20010228232827.A12658@daikokuya.demon.co.uk><20010301145100.A22921@hg.cs.mu.oz.au>
Fergus Henderson <fjh@cs.mu.oz.au> writes:
> On 28-Feb-2001, Neil Booth <neil@daikokuya.demon.co.uk> wrote:
> > Whilst we're on the topic of deprecating extensions, is there any support
> > for deprecating multi-line strings for GCC 3.0?
>
> That particular GCC extension is one that I've only ever seen used by
> accident,
I found it very useful for writing self-documenting programs, I have a
lot of code like the example below. If I could get rid of the "\n\"
it would be easier to read, and easier to type and edit. The only
reason I no longer use the extension, is that the code must compile
with other compilers.
syntax.add ("equivalent_weight", "kg N/ha", Syntax::OptionalConst,
"\
When fertilizing with organic matter, you may let Daisy calculate the\n\
amount of dry matter that corresponds to the specified amount of\n\
nitrogen. This requires that the fertilizer has specified the\n\
'first_year_utilization' parameter, but not the 'weight' parameter.");
syntax.add ("minimum_weight", "kg N/ha", Syntax::Const,
"Minimum amount of nitrogen to fertilize with.");
alist.add ("minimum_weight", 0.0);
syntax.add_submodule ("precision", alist,
Syntax::OptionalConst, Syntax::Singleton, "\
Let the amount of fertilizer depend on the inorganic nitrogen in the soil.\n\
The amount of fertilizer will be the specified 'target', minus the amount\n\
already present in the soil zone between 'from' and 'to'.",
&ActionFertilize::Precision::load_syntax);