autoconf-patches
[Top][All Lists]
Advanced

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

Re: Bug fix for rewriting of traces without arguments.


From: akim
Subject: Re: Bug fix for rewriting of traces without arguments.
Date: Fri, 3 Aug 2001 18:16:35 +0200
User-agent: Mutt/1.3.18i

On Fri, Aug 03, 2001 at 05:32:00PM +0200, Alexandre Duret-Lutz wrote:
> >>> "Akim" == Akim Demaille <address@hidden> writes:
> 
>  Akim> PS/ Was this bug triggered by something `usual', or you used it by
>  Akim> hand or by dedicated code?
> 
> Nothing unusual, you just need macros without arguments.  
> And since lot's of people use AC_C_CONST, you can reproduce
> it almost everywhere.  For instance unpack fileutils-4.1 and
> run
>   autoscan; autoconf

Wow, how come I never met this problem? :(  I do run autoscan on the file
utils though.  A big thanks to you.

May I ask you to apply this too:

Index: ChangeLog
from  Akim Demaille  <address@hidden>

        * tests/tools.at (autoconf --trace: user macros): Check traces on
        macros invoked without arguments, and macros invoked with multiple
        lines arguments.

Index: tests/tools.at
--- tests/tools.at Thu, 02 Aug 2001 19:50:48 +0200 akim
+++ tests/tools.at Fri, 03 Aug 2001 17:11:53 +0200 akim
@@ -119,26 +119,43 @@
 [[m4_define([active], [ACTIVE])
 m4_define([TRACE1], [TRACE2(m4_shift($@))])
 m4_define([TRACE2], [[$2], $1])
+
+# No arguments.
+TRACE1
+TRACE2
+
+# With arguments, single line.
 TRACE1(foo, bar, baz)
 TRACE1(foo, TRACE1(bar, baz))
 TRACE1(foo, active, baz)
 TRACE1(foo, [active], TRACE1(active, [active]))
+
+# With arguments, multiple lines.
+TRACE1(foo
+bar,
+bar
+foo)
 ]])

 # Several --traces.
 AT_CHECK_AUTOCONF([-t TRACE1 -t TRACE2], 0,
-[[configure.ac:4:TRACE1:foo:bar:baz
-configure.ac:4:TRACE2:bar:baz
-configure.ac:5:TRACE1:bar:baz
-configure.ac:5:TRACE2:baz
-configure.ac:5:TRACE1:foo::baz
-configure.ac:5:TRACE2::baz
-configure.ac:6:TRACE1:foo:ACTIVE:baz
-configure.ac:6:TRACE2:ACTIVE:baz
-configure.ac:7:TRACE1:ACTIVE:active
-configure.ac:7:TRACE2:active
-configure.ac:7:TRACE1:foo:active::ACTIVE
-configure.ac:7:TRACE2:active::ACTIVE
+[[configure.ac:6:TRACE1:
+configure.ac:6:TRACE2:
+configure.ac:7:TRACE2:
+configure.ac:10:TRACE1:foo:bar:baz
+configure.ac:10:TRACE2:bar:baz
+configure.ac:11:TRACE1:bar:baz
+configure.ac:11:TRACE2:baz
+configure.ac:11:TRACE1:foo::baz
+configure.ac:11:TRACE2::baz
+configure.ac:12:TRACE1:foo:ACTIVE:baz
+configure.ac:12:TRACE2:ACTIVE:baz
+configure.ac:13:TRACE1:ACTIVE:active
+configure.ac:13:TRACE2:active
+configure.ac:13:TRACE1:foo:active::ACTIVE
+configure.ac:13:TRACE2:active::ACTIVE
+configure.ac:19:TRACE1:foo bar:bar foo
+configure.ac:19:TRACE2:bar foo
 ]])

 # Several line requests.




reply via email to

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