From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [PATCH 8/9 V3] Add documentation for the new DTS language. Date: Sat, 4 Oct 2008 14:52:20 +1000 Message-ID: <20081004045220.GM30184@yookeroo.seuss> References: <1222460748-20127-9-git-send-email-jdl@jdl.com> <20080930145537.GJ18313@secretlab.ca> <20081001034656.GF30810@yookeroo.seuss> <48E396A3.809@freescale.com> <20081002011800.GI25598@yookeroo.seuss> <20081002152242.GB22258@ld0162-tx32.am.freescale.net> <20081002161150.GA14351@yookeroo.seuss> <48E5036D.9040509@freescale.com> <20081003022424.GG3002@yookeroo.seuss> <20081003152700.GA9115@ld0162-tx32.am.freescale.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20081003152700.GA9115-VKaLA/mbEU932VTgPCOETVjVikpgYyvb5NbjCUgZEJk@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: Scott Wood Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org On Fri, Oct 03, 2008 at 10:27:01AM -0500, Scott Wood wrote: > On Fri, Oct 03, 2008 at 12:24:24PM +1000, David Gibson wrote: > > > And if you want the number of somethings to be easily tweakable, you may > > > need to do #include/#ifdef recursion. > > > > Yes, we'd certainly need some sort of iteration operator in the > > expressions for this sort of thing. > > OK, but now we're talking about something more complex than running it > through CPP with some character conversion. > > A more powerful macro language is certainly an option, though I have a > personal preference for the semantic approach. Ugh.. actually. What I had in mind was not macro features to do iteration, but iteration constructs in expressions that macros could expand to. But I just realised that might not suffice. It's a fairly limited number of use cases that that will work for, although I think they will be common ones. But you do have a point here. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson