help-gnu-utils
[Top][All Lists]
Advanced

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

Re: Using m4 for c preprocessing


From: himanshu . garg
Subject: Re: Using m4 for c preprocessing
Date: 14 Apr 2005 00:09:59 -0700
User-agent: G2/0.2

Paul Jarc wrote:
> himanshu.garg@gmail.com (Himanshu Garg) wrote:
> >     Could you give me an example by which I could use m4 for c
> > preprocessing such as that for replacing #include<file.h> by its
> > contents.
>
> m4 wouldn't use the same syntax or search path as the C preprocessor,
> but it can do file inclusion:
> include(`/usr/include/file.h')
> See the m4 documentation for more.

Thanks for the reply Paul. This won't do for me. In my case I would
like to treat statements beginning with % as preprocessor stmts.

I may have to write a custom preprocessor.

Thank You,
Himanshu.



reply via email to

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