diff options
author | Paul Smith <psmith@gnu.org> | 2004-09-21 04:00:31 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2004-09-21 04:00:31 +0000 |
commit | 0799ce730d2404d1cd1d03ce2f4ac07cc079c72e (patch) | |
tree | 6b9602199bec0f905f06a7a8f1c7bedb1e65b349 /ChangeLog | |
parent | 08c8105c5468ff743d2f2ff2fdf3b77a6313b53e (diff) | |
download | gunmake-0799ce730d2404d1cd1d03ce2f4ac07cc079c72e.tar.gz |
Fix some bugs in variable pattern substitution (e.g. $(VAR:A=B)),
reported by Markus Mauhart <qwe123@chello.at>. One was a simple typo; to
fix the other we call patsubst_expand() for all instances of variable
substitution, even when there is no '%'. We used to call subst_expand()
with a special flag set in the latter case, but it didn't work properly
in all situations. Easier to just use patsubst_expand() since that's
what it is.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -1,3 +1,25 @@ +2004-09-20 Paul D. Smith <psmith@gnu.org> + + * expand.c (variable_expand_string): Modify to invoke + patsubst_expand() instead of subst_expand(); the latter didn't + handle suffix patterns correctly. + * function.c (subst_expand): Remove the SUFFIX_ONLY parameter; it + was used only from variable_expand_string() and is no longer used + there. + (func_subst): Ditto, on call to subst_expand(). + (patsubst_expand): Require the percent pointers to point to the + character after the %, not to the % itself. + * read.c (record_files): New call criteria for patsubst_expand(). + * variable.h: Remove SUFFIX_ONLY from subst_expand() prototype. + This is to fix a bug reported by Markus Mauhart <qwe123@chello.at>. + +2004-09-19 Paul D. Smith <psmith@gnu.org> + + * function.c (subst_expand): Fix a check in by_word: look for a + previous blank if we're beyond the beginning of the string, not + the beginning of the word. + Bugs reported by Markus Mauhart <qwe123@chello.at>. + 2004-05-16 Paul D. Smith <psmith@gnu.org> * remake.c (update_goal_chain): Change the argument specifying |