Add short const support, make constant scraping impl. testable#1503
Add short const support, make constant scraping impl. testable#1503mikebattista merged 4 commits intomicrosoft:mainfrom
Conversation
|
I thought everyone agreed that we shouldn't be changing the types of these to |
|
Here's what the output previously looked like: And how it looks like afterwards: |
|
Ok. Can you update the baseline? |
|
@mikebattista That's what I was asking you for help with (bottom of PR) 🙃. Doesn't look like it's detecting the changes. If you don't get to it, no worries, I can take a look off work hours. |
|
Tweaked the PR text as I realized it was causing some confusion (short constants vs short pwstr constant values). Sorry about that. |
|
My guess is the below needs to change. win32metadata/sources/WinmdUtils/Program.cs Lines 1129 to 1148 in 48d738c |
|
New diff: |
|
Awesome. Thanks! |
Fixes: #1029
Added support for
shortPSTR/PWSTRconstant values in special cases (e.g.MAKEINTRESOURCE). Did some light refactoring to the constant parsing code to get some unit testing going. More refactor work is needed; over time we'll eliminate our need for the abstractions dependency.New ConstantsScraper dependencies:
New test dependencies:
@mikebattista Can you help with the winmd changes comparison script? It doesn't seem to be picking up on the subtle differences here.