public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Sergei Gavrikov <sergei.gavrikov@gmail.com>
To: Ilija Kocho <ilijak@siva.com.mk>
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Assign a CDL value to  TCL variable.
Date: Sun, 08 Jul 2012 20:57:00 -0000	[thread overview]
Message-ID: <alpine.DEB.2.00.1207082331250.7039@sg-laptop> (raw)
In-Reply-To: <4FF9E752.3030606@siva.com.mk>

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

  reply	other threads:[~2012-07-08 20:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-08 20:02 Ilija Kocho
2012-07-08 20:57 ` Sergei Gavrikov [this message]
2012-07-08 21:27   ` Ilija Kocho
2012-07-09 22:48     ` Sergei Gavrikov

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=alpine.DEB.2.00.1207082331250.7039@sg-laptop \
    --to=sergei.gavrikov@gmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=ilijak@siva.com.mk \
    /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).