This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Baffled yet again by CDL
- From: Jay Foster <jay at systech dot com>
- To: Grant Edwards <grant dot b dot edwards at gmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Wed, 21 Mar 2012 14:20:14 -0700
- Subject: Re: [ECOS] Baffled yet again by CDL
- References: <jkddqo$6j5$1@dough.gmane.org>
- Reply-to: jay at systech dot com
Use
default_value { "\"Foobar\"" }
There are many examples in the eCos repository that do this.
Jay
On 3/21/2012 1:31 PM, Grant Edwards wrote:
How do I get a quoted string as a default value for a CDL option?
If I put
default_value {"Foobar"}
I get this:
#define CYG_WHATEVER Foobar
But when user_value like this
user_value {"Foobar"}
Then I get this:
#define CYG_WHATEVER "Foobar"
Why do they behave differently? How do I get the latter result with a
default value? [This reminds me yet again why I loathe TCL]
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss