m4 recursive macro help

From: Jason Sinnamon (sinnamoj_at_excite.com)
Date: 09/10/03

  • Next message: Erik Max Francis: "Re: m4 recursive macro help"
    Date: Wed, 10 Sep 2003 19:14:03 +1000
    
    

    I need to search a list of values such that I can do something like this:

    define(`match', `index(:word1:word2:, :$1:)')

    define(`rmatch', ?????)

    rmatch(word1, word2, word3,

    line1
    line2

    )

    The lines should be printed if one of the words matches a word in the
    colon-separated list. The macro for matching a single word from the list
    works, I am just really stuck on the recursive match macro.

    I would appreciate any help that anyone can offer.

    Thanks..JS


  • Next message: Erik Max Francis: "Re: m4 recursive macro help"

    Relevant Pages