[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any basic cpp capability m4 cannot do?

From: Raphael 'kena' Poss
Subject: Re: Any basic cpp capability m4 cannot do?
Date: Thu, 08 May 2014 08:36:17 +0200
User-agent: K-9 Mail for Android

Hi Daniel,

You may want to check cpp's ability with # to turn an arbitrary enclosed sequence of C tokens into a single C string that is properly quoted. Especially if said sequence already contains strings. This I found relatively difficult to imitate with m4.


On 8 mei 2014 02:49:30 CEST, Daniel Goldman <address@hidden> wrote:
My analysis suggests cpp and m4 share some 10 basic (non-trivial) 
capabilities, and m4 has some 15 basic capabilities that cpp cannot do.
Examples of "basic capabilities" are: comment, define a macro, include a
file, execute a system command, increment a number, etc.

My question: Can anyone suggest some basic capability cpp can do that m4
cannot? Especially in the context of pre-processing C code.

I'm trying to anticipate what might happen on the next step of a
conversion process, to anticipate something special cpp maybe does I've


Verzonden van mijn Android telefoon met K-9 Mail.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]