On Thu, 15 Nov 2001 00:05:20 -0500, 
"Eric S. Raymond" <[EMAIL PROTECTED]> wrote:
>Keith Owens <[EMAIL PROTECTED]>:
>> derive MYVAR from (X86 ? "a" : )
>> derive MYVAR from (PPC ? "b" : )
>> derive MYVAR from (ARM ? "c" : )
>
>That doesn't solve your problem, I don't think.  To do what you told me
>you wanted, you're going to need to be able to write conditional declarations 
>for the same symbol in different architecture files.  Have you seen John
>Cowan's proposal on this?

I thought they were almost the same, with different syntax.

derive MYVAR from (X86 ? "a" : )
derive MYVAR from (PPC ? "b" : )

By completely omitting the else clause (as opposed to setting an empty
string) it says

  on X86 set MYVAR to "a"
  on PPC set MYVAR to "b"
  ...
  on unknown architectures MYVAR is undefined

That fits what I need to do without a lot of nested if statements.


_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to