This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Deprecating GCC extensions...


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]