From: David Gibson <[EMAIL PROTECTED]>
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
_______________________________________________
devicetree-discuss mailing list
devicetree-discuss@ozlabs.org
https://ozlabs.org/mailman/listinfo/devicetree-discuss

Reply via email to