public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Jay Foster <jay@systech.com>
To: Grant Edwards <grant.b.edwards@gmail.com>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] Baffled yet again by CDL
Date: Wed, 21 Mar 2012 21:20:00 -0000	[thread overview]
Message-ID: <4F6A460E.4070607@systech.com> (raw)
In-Reply-To: <jkddqo$6j5$1@dough.gmane.org>

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

  reply	other threads:[~2012-03-21 21:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 20:31 Grant Edwards
2012-03-21 21:20 ` Jay Foster [this message]
2012-03-21 22:18   ` [ECOS] " Grant Edwards
2012-03-22  7:43     ` Sergei Gavrikov
2012-03-22 16:55       ` Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F6A460E.4070607@systech.com \
    --to=jay@systech.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=grant.b.edwards@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).