M4 was originally the preprocessor for ratfor. It is now used by fvwm and the configure script maker.
Here are a few, maybe useful M4 macros, taken from my SunExpert Q&AIX column, January, 1998.
Included are a for loop: for(var,start,end,procedure)
for(`x',1,5,` x squared = eval(x**2)')
1 squared = 1 2 squared = 4 3 squared = 9 4 squared = 16 5 squared = 25
There is also the sublime nextprime calculator, which expands to the next higher prime number from its argument: nextprime(number)
50021Get the macros as text, tools.m4, or in a compressed form, tools.m4.gz.
[an error occurred while processing this directive]
© 1983-2017, University of Washington