m4 recursive macro help
From: Jason Sinnamon (sinnamoj_at_excite.com)
Date: 09/10/03
- Previous message: dpm: "Compile error: wrong machine type"
- Next in thread: Erik Max Francis: "Re: m4 recursive macro help"
- Reply: Erik Max Francis: "Re: m4 recursive macro help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: dpm: "Compile error: wrong machine type"
- Next in thread: Erik Max Francis: "Re: m4 recursive macro help"
- Reply: Erik Max Francis: "Re: m4 recursive macro help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|