diff options
author | Mats Wichmann <mats@linux.com> | 2023-03-21 13:30:36 -0600 |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2023-03-21 13:34:31 -0600 |
commit | fd166f513214e81d3622485128739354dfa11a24 (patch) | |
tree | 346f6ce373ca9f1f96e74bab956f5d92b0467432 /CHANGES.txt | |
parent | 5eab3a7caea508b69501d3b577a706910e980840 (diff) | |
download | scons-git-fd166f513214e81d3622485128739354dfa11a24.tar.gz |
Fix dictifyCPPDEFINES handlong of macro strings
CPPDEFINES can contain name=value strings, either a single one, or one or
more in a sequence type. After conversion (subsequent Append/Prepend to
CPPDEFINES), these will be stored as tuples, but it is possible to hit
cases where the type conversion has never been triggered. The C Scanner
has its own routine to process CPPDEFINES, and missed these cases,
which are now handled.
The testcases in issue 4193 which showed this problem are now included
in the C scanner unit tests, and the test for dictifyCPPDEFINES is
expanded to check these two forms.
Fixes #4193
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'CHANGES.txt')
-rw-r--r-- | CHANGES.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index c6f35faff..c5949793d 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -9,9 +9,12 @@ NOTE: 4.3.0 now requires Python 3.6.0 and above. Python 3.5.x is no longer suppo RELEASE VERSION/DATE TO BE FILLED IN LATER - From John Doe: - - - Whatever John Doe did. + From Mats Wichmann + - C scanner's dictifyCPPDEFINES routine did not understand the possible + combinations of CPPDEFINES - not aware of a "name=value" string either + embedded in a sequence, or by itself. The conditional C scanner thus + did not always properly apply the defines. The regular C scanner does + not use these, so was not affected. [fixes #4193] RELEASE 4.5.2 - Sun, 21 Mar 2023 14:08:29 -0700 |