From 052319b635abea0efba90930031d9c0899dcb0a8 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Wed, 11 Feb 2009 08:49:43 -0700 Subject: [PATCH] Avoid regression in popdef(undef). * doc/m4.texinfo (Trace): Enhance test, to cover regression recently fixed on the branch. Signed-off-by: Eric Blake (cherry picked from commit f35224878771517f1d7c13568c1b65a59e7908a4) --- ChangeLog | 6 ++++++ doc/m4.texinfo | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 85e876b7..acbdeec5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-02-11 Eric Blake + + Avoid regression in popdef(undef). + * doc/m4.texinfo (Trace): Enhance test, to cover regression + recently fixed on the branch. + 2009-02-09 Eric Blake Enhance index to support starting offset. diff --git a/doc/m4.texinfo b/doc/m4.texinfo index 093f3952..f972b48b 100644 --- a/doc/m4.texinfo +++ b/doc/m4.texinfo @@ -4238,6 +4238,16 @@ foo defn(`foo') @error{}m4:stdin:4: Warning: defn: undefined macro `foo' @result{} +undefine(`foo') +@error{}m4:stdin:5: Warning: undefine: undefined macro `foo' +@result{} +pushdef(`foo') +@result{} +popdef(`foo') +@result{} +popdef(`foo') +@error{}m4:stdin:8: Warning: popdef: undefined macro `foo' +@result{} define(`foo', `bar') @result{} foo @@ -4248,7 +4258,7 @@ undefine(`foo') ifdef(`foo', `yes', `no') @result{}no indir(`foo') -@error{}m4:stdin:9: Warning: indir: undefined macro `foo' +@error{}m4:stdin:13: Warning: indir: undefined macro `foo' @result{} define(`foo', `blah') @result{} -- 2.11.4.GIT