m4

in m4's patsubst, how do I replace newlines with spaces?

天大地大妈咪最大 提交于 2019-12-01 08:34:11
How can I tell m4's patsubstr to replace all newlines in a string with a space? I've tried: patsubst(MULTI_LINE_STR_DEFINE,`\n',` ') and patsubst(MULTI_LINE_STR_DEFINE,`\\n',` ') patsubst(MULTI_LINE_STR_DEFINE,` ',` ') That is, you put the newline, literally, between quotes. 来源: https://stackoverflow.com/questions/1567668/in-m4s-patsubst-how-do-i-replace-newlines-with-spaces

in m4's patsubst, how do I replace newlines with spaces?

假如想象 提交于 2019-12-01 05:39:04
问题 How can I tell m4's patsubstr to replace all newlines in a string with a space? I've tried: patsubst(MULTI_LINE_STR_DEFINE,`\n',` ') and patsubst(MULTI_LINE_STR_DEFINE,`\\n',` ') 回答1: patsubst(MULTI_LINE_STR_DEFINE,` ',` ') That is, you put the newline, literally, between quotes. 来源: https://stackoverflow.com/questions/1567668/in-m4s-patsubst-how-do-i-replace-newlines-with-spaces

Using m4 macros with Eclipse & Java

蹲街弑〆低调 提交于 2019-11-29 16:15:58
Is there a way to use m4 macros when developing in Java for Eclipse, ie. making sure the preprocessor is automatically invoked before Eclipse compiles? Or has anyone used another preprocessor successfully with Eclipse? You can specify an arbitrary builder on an Eclipse project, and order the builder so that it is executed before the Java builder is run. To define the new builder, open the project properties (right click->Properties or alt - enter ), select Builders then New... . Select Program , then in the dialog configure the builder (hopefully you know what needs to be done here) and select