Fix macro substitution bug; some Makefile issues

This commit is contained in:
hpa 2002-03-08 04:08:05 +00:00
parent 60707444d7
commit d849153191
3 changed files with 6 additions and 2 deletions

View file

@ -11,6 +11,8 @@ Changes in 0.29:
a "recvfrom: Interrupted system call" log message if signals
arrive at a particularly inopportune moment.
Fix a macro substitution bug (thanks to Richard Nyberg.)
Changes in 0.28:
Fix stupid one-liner bug which broke standalone mode (-l).

View file

@ -32,7 +32,7 @@ distclean: localdistclean $(patsubst %, %.distclean, $(SUB))
localdistclean: localclean
rm -f MCONFIG config.status config.log acconfig.h *~ \#*
rm -rf *.cache
find . -type f \( -name \*.orig -o -name \*.rej \) | xargs -r rm -f
find . -type f \( -name \*.orig -o -name \*.rej \) | xargs rm -f
spotless: distclean
rm -f configure acconfig.h.in
@ -56,7 +56,7 @@ acconfig.h: MCONFIG
# autoconf and autoheader.
acconfig.h.in: configure.in configure aclocal.m4
rm -f acconfig.h.in acconfig.h
autoheader -f
autoheader
configure: configure.in aclocal.m4
rm -f MCONFIG configure config.log acconfig.h config.cache

View file

@ -78,6 +78,8 @@ static int genmatchstring(char *string, const char *pattern, const char *input,
if ( macrosub &&
(sublen = macrosub(macro, string)) >= 0 ) {
len += sublen;
if ( string )
string += sublen;
} else {
len++;
if ( string )