
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 example, for(`x',1,5,` x squared = eval(x**2)') expands to 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) For example, nextprime(50000) expands to 50021Get the macros as text, tools.m4, or in a compressed form, tools.m4.gz.
[an error occurred while processing this directive]

Fox's Home 
© 19832017, University of Washington