M4 Macro-processing Language. Geoffrey Sewell. What will be shown?. What’s a macro processor? History of M4 Uses Autotools Syntax Hopefully, you all learn something from this!!!. What’s a Macro-processor?. General Macro Processor. Copies a stream of text to a different location
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Hopefully, you all learn something from this!!!
``time’’ = `time’
Define(hey, `Hello World.’)
Define(switch, `$2, $1’)
What’s the result?
Ifdef(name, string1, string2)
Ifelse(string1, string2, equal, not-equal)
Ifelse(cold, hot, `fresh’, clean, froggy, `tight’, `supafly’)
define(`reverse', `ifelse($#, 0, , $#, 1, "$1", `reverse(shift($@)), `$1")')
define(`forloop', `pushdef(`$1', `$2')_forloop(`$1', `$2', `$3', `$4')popdef(`$1')')
define(`_forloop', `$4`'ifelse($1, `$3', , `define(`$1', incr($1))_forloop(`$1', `$2', `$3', `$4')')')
patsubst(`GNUs not Unix', `[A-Z][a-z]+')