From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28138 invoked by alias); 8 Jul 2012 21:27:35 -0000 Received: (qmail 28130 invoked by uid 22791); 8 Jul 2012 21:27:35 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from tirion.supremecenter202.com (HELO tirion.supremecenter202.com) (209.25.195.243) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 Jul 2012 21:27:22 +0000 Received: from [77.28.173.151] (port=47208 helo=[192.168.178.36]) by tirion.supremecenter202.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77) (envelope-from ) id 1Snz0i-0003l7-Mq; Sun, 08 Jul 2012 21:27:21 +0000 Message-ID: <4FF9FB35.2080702@siva.com.mk> Date: Sun, 08 Jul 2012 21:27:00 -0000 From: Ilija Kocho User-Agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Sergei Gavrikov CC: ecos-discuss@ecos.sourceware.org References: <4FF9E752.3030606@siva.com.mk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 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] Assign a CDL value to TCL variable. X-SW-Source: 2012-07/txt/msg00012.txt.bz2 On 08.07.2012 22:56, Sergei Gavrikov wrote: Thanks Sergei, but that's not what I need. I heed to assign some Tcl variable with the value of some CDL option. Ilija > On Sun, 8 Jul 2012, Ilija Kocho wrote: > >> Hi colleagues >> >> Is there a way to assign a value of CDL option/component to a TCL >> variable. something equivalent to: >> >> cdl_option CYGFOO { >> flavor data >> calculated 5 >> } >> >> set cygbar some_function(CYGFOO) >> # Here cygbar == 5 > Hi Ilija > > Would not you use TCL's ``set'' command for that? E.g. > > cdl_package CYGPKG_FOO { > cdl_option CYGGLO_FOOBAR { > flavor data > calculated [set ::foobar 5] > } > } > > In such a case you'll find in pkgconf/foo.h > > #define CYGGLO_FOOBAR 5 > #define CYGGLO_FOOBAR_5 > > Sure that global TCL variable ``foobar'' will be set to 5 too. > > HTH > > Sergei > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss