[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: m4 bug
From: |
Paul Jarc |
Subject: |
Re: m4 bug |
Date: |
Wed, 17 Apr 2002 15:00:45 -0400 |
User-agent: |
Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i686-pc-linux-gnu) |
Gerald Strom <address@hidden> wrote:
> I am running m4 version 1.4.1 under red hat 7.1. The following line produced
> a screen full of int int int int
> define(`main', `int main()')
> main
That's what it's supposed to do. The expansion of a macro is subject
to re-expansion, so if you don't want the "main" in the macro
definition to itself be expanded, you have to quote it.
define(`main', `int `main'()')
And if you're worried that, e.g., "int" might also have a macro
definition, you could quote the whole definition:
define(`main', ``int main()'')
paul
- m4 bug, Gerald Strom, 2002/04/17