Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Dec 15, 2024

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.1)

Can you help keep this open source service alive? 💖 Please sponsor : )

mwichmann and others added 8 commits December 6, 2024 08:53
Also correct one long-standing minor inconsistency: if a list of names
for a variable is given, it is split into name and aliases, with the
name not duplicated into the aliases. If only one name is given, it is
both the name and the only entry in the aliases. All of the usages of
aliases combine them back together anyway, like:

    if arg in option.aliases + [option.key,]:

So there's no need for the behavior of the one-name form including the
name in aliases. One test did need to change for this - the test of a
custom help formatter function was wired to accept the old form, but
only because of the way the custom formatter in the test was written,
so this is a self-contained problem.

Signed-off-by: Mats Wichmann <[email protected]>
Simplistic macro replacement is now done on the contents of CPPDEFINES,
to improve accuracy of conditional inclusion as compared to the real
preprocessor (ref: issue #4623).

Signed-off-by: Mats Wichmann <[email protected]>
Replacement is now limited to five passes, to avoid going into an endless
loop in pathlogical cases where there are three or more macros that
circularly refer to each other. No error is reported in this case.

Replacement is now only done for the otional C Conditional scanner,
not for the classical C scanner.

Signed-off-by: Mats Wichmann <[email protected]>
Now using the "modified" approach from the PR discussion: unroll the
dict comprehension and as we process replacements keep track if changes
were made, rather than doing the relatively more expensive dict-vs-dict
comparison at the end of each loop.

Signed-off-by: Mats Wichmann <[email protected]>
Improve C scanner conditional inclusion
Turn `SCons.Variables.Variable` into a dataclass
@pull pull bot added the ⤵️ pull label Dec 15, 2024
@pull pull bot merged commit 8e216da into nfiot:master Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants