From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30037 invoked by alias); 21 Mar 2012 21:20:31 -0000 Received: (qmail 30027 invoked by uid 22791); 21 Mar 2012 21:20:30 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from nm5-vm0.access.bullet.mail.mud.yahoo.com (HELO nm5-vm0.access.bullet.mail.mud.yahoo.com) (66.94.237.155) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Wed, 21 Mar 2012 21:20:17 +0000 Received: from [66.94.237.194] by nm5.access.bullet.mail.mud.yahoo.com with NNFMP; 21 Mar 2012 21:20:16 -0000 Received: from [98.139.244.55] by tm5.access.bullet.mail.mud.yahoo.com with NNFMP; 21 Mar 2012 21:20:16 -0000 Received: from [127.0.0.1] by smtp107.biz.mail.bf1.yahoo.com with NNFMP; 21 Mar 2012 21:20:16 -0000 X-Yahoo-SMTP: _6UaILCswBBhOX_6rRH7WS5y1ZaLCg-- Received: from [172.16.4.241] (jay@207.212.80.162 with plain) by smtp107.biz.mail.bf1.yahoo.com with SMTP; 21 Mar 2012 14:20:16 -0700 PDT Message-ID: <4F6A460E.4070607@systech.com> Date: Wed, 21 Mar 2012 21:20:00 -0000 From: Jay Foster Reply-To: jay@systech.com User-Agent: Mozilla/5.0 (Windows NT 5.0; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Grant Edwards CC: ecos-discuss@sources.redhat.com References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Baffled yet again by CDL X-SW-Source: 2012-03/txt/msg00082.txt.bz2 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