I need a gnu m4 macro called _enum to the Nth item of a list.
So for example
_enum(4,`APPLE,PEAR,PEA,LOLLY,POTATO')
will output
LOLLY to stdout
Can anyone help?
Tnx
John
I need a gnu m4 macro called _enum to the Nth item of a list.
So for example
_enum(4,`APPLE,PEAR,PEA,LOLLY,POTATO')
will output
LOLLY to stdout
Can anyone help?
Tnx
John
1. Gnu M4 Macro for `enum` look-a-like?
I want to define a M4 macro called _enum which echos the Nth parameter.
so, for example
_enum(4,`APPLE,PEAR,ICE,LOLLY,POTATO,FREAK')
would echo
LOLLY to stdout
Can anyone help?
Thanks,
John
3. Is it OK to replace m4 with GNU m4?
4. Library trickery (was Re: Clive's WG14 meeting report)
5. Using M4 macros to setup masquerade and smart host newer Sunboxes
8. Discovering Filesystem Type for Given File
9. m4 Macro Preprocessor examples wtd
11. Building the m4 macro processor. Help!!
13. Macro processor (better than m4 & cpp) wanted