From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2150 invoked by alias); 27 Mar 2011 17:11:54 -0000 Received: (qmail 2141 invoked by uid 22791); 27 Mar 2011 17:11:54 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f49.google.com (HELO mail-fx0-f49.google.com) (209.85.161.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Mar 2011 17:11:45 +0000 Received: by fxm14 with SMTP id 14so1846214fxm.36 for ; Sun, 27 Mar 2011 10:11:44 -0700 (PDT) Received: by 10.223.117.1 with SMTP id o1mr3397451faq.59.1301245904657; Sun, 27 Mar 2011 10:11:44 -0700 (PDT) Received: from sg-laptop ([178.123.158.247]) by mx.google.com with ESMTPS id 21sm1142497fav.41.2011.03.27.10.11.42 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 Mar 2011 10:11:43 -0700 (PDT) Date: Sun, 27 Mar 2011 17:11:00 -0000 From: Sergei Gavrikov To: Ilija Kocho cc: ecos-devel@ecos.sourceware.org Subject: Re: tty.cdl In-Reply-To: <4D8F5BAD.6020708@siva.com.mk> Message-ID: References: <4D8DBE3F.2000708@siva.com.mk> <4D8F2207.7070701@siva.com.mk> <4D8F5BAD.6020708@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-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2011-03/txt/msg00029.txt.bz2 On Sun, 27 Mar 2011, Ilija Kocho wrote: > On 27.03.2011 14:45, Sergei Gavrikov wrote: > > > > Hi Ilija, > > > > I get it (about your attempting to build the in-lines using CDL), but, I > > would keep things simpler, i.e. just would add two absent entries for > > TTY4, TTY5, TTYx in tty.c. Those are conditional definitions depend on > > > Adding two additional TTYs is an alternative indeed, it is simple and > straightforward to implement. > > My idea was to make system auto extensible and configurable. I have > fixed number of TTYs to 6, but as you suggest in your research below it > could be defined as a variable. HAL could provide an override too. Also > maintenance may be simpler since we avoid duplicated code?! Indeed. But, now I think that I gave bad suggest about extension via environment variable (How to document this "feature"? Who will know about? It looks like a trick) Ilija, so far, I take a timeout to think and test your substitutions and I will try to find compromise solution without the tricks and complex Tcl/CDL expressions. Sergei