bug-m4
[Top][All Lists]
Advanced

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

m4 comment bug


From: David A. Caplan
Subject: m4 comment bug
Date: Fri, 14 Jan 2005 10:39:04 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113

m4 seems to be picking up single quote characters (') within comment lines (both when using # and dnl). I am using "GNU m4 1.4.1". It also expands $1, $2,... if they are within a comment.

Example:
define(`foo',`
# there aren't any arguments to this macro
this is output of the fo`o' macro')
foo

produces an output loop (because foo is recursively called),
=>
=>
=># there arent any arguments to this macro
=>this is output of the
=># there arent any arguments to this macro
=>this is output of the
...

where:
define(`foo',`
# there arent any arguments to this macro
this is output of the `fo'o macro')
foo

The output is:
=>
=>
=># there arent any arguments to this macro
=>this is output of the foo macro

If we have:
define(`foo',`
# there aren`'t any arguments to this macro
this is output of the fo`o' macro')
foo

The ouput is:
=>
=>
=># there aren`'t any arguments to this macro
=>this is output of the foo macro



--
__________________________________

David Caplan     410 290 1411 x105
address@hidden
Tresys Technology, LLC
8840 Stanford Blvd., Suite 2100
Columbia, MD 21045




reply via email to

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