From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17605 invoked by alias); 8 Jul 2012 20:57:02 -0000 Received: (qmail 17597 invoked by uid 22791); 8 Jul 2012 20:57:02 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,MALFORMED_FREEMAIL,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wg0-f49.google.com (HELO mail-wg0-f49.google.com) (74.125.82.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 08 Jul 2012 20:56:49 +0000 Received: by wgbds1 with SMTP id ds1so7845148wgb.30 for ; Sun, 08 Jul 2012 13:56:48 -0700 (PDT) Received: by 10.180.20.239 with SMTP id q15mr24073499wie.13.1341781008165; Sun, 08 Jul 2012 13:56:48 -0700 (PDT) Received: from sg-laptop ([178.123.159.129]) by mx.google.com with ESMTPS id t8sm19808654wiy.3.2012.07.08.13.56.46 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jul 2012 13:56:47 -0700 (PDT) Date: Sun, 08 Jul 2012 20:57:00 -0000 From: Sergei Gavrikov To: Ilija Kocho cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <4FF9E752.3030606@siva.com.mk> Message-ID: References: <4FF9E752.3030606@siva.com.mk> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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/msg00011.txt.bz2 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