From mboxrd@z Thu Jan 1 00:00:00 1970 From: Warner Losh Subject: Re: [PATCH 8/9 V3] Add documentation for the new DTS language. Date: Tue, 30 Sep 2008 22:01:51 -0600 (MDT) Message-ID: <20080930.220151.41675821.imp@bsdimp.com> References: <1222460748-20127-9-git-send-email-jdl@jdl.com> <20080930145537.GJ18313@secretlab.ca> <20081001034656.GF30810@yookeroo.seuss> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20081001034656.GF30810-787xzQ0H9iRg7VrjXcPTGA@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: david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org From: David Gibson Subject: Re: [PATCH 8/9 V3] Add documentation for the new DTS language. Date: Wed, 1 Oct 2008 13:46:56 +1000 > This could either be done by actually invoking cpp, using some > pre-and-post mangling to deal with the #-in-property-names problem. > Or we could build our own preprocessor that uses something other than > # as a magic character, but otherwise works like cpp. There's always m4, but that has its own set of issues. Not sure if I should add a :-) or a :-(. You could also s/#/$/g on the source and pass that through cpp and then undo it on the other side. Assuming that cpp has been compiled with $ in symbol name support. The root of the problem here is that the original openfirmware spec wasn't 'C' and many of the new language features are aimed at a 'C' audience... Warner