-
-
Notifications
You must be signed in to change notification settings - Fork 392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added missing FileVersionInfo functionality #906
base: 0.3
Are you sure you want to change the base?
Conversation
Added missing functions to winver.rs Reordered winver.rs to match the order of the original header Replaced explicit pointers in winver.rs with their concise winapi equivalents Created versrc.rs and populated it with its constants and a struct type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a few fixes.
-
Organization of code
- All definitions go into the source file that directly maps to the header the definition is from:
⚠️ versrc doesn't match header file nameverrsrc.h
.
- Definitions are defined in the same order as they are in the original header: ✔️
- All definitions go into the source file that directly maps to the header the definition is from:
-
Extern functions
- The calling convention specified should be the one for 32bit: ✔️
-
Constants
- Names are correct ✔️
- Values are correct
⚠️ one small issue. - Types are correct: All the constants are meant to be used in the VS_FIXEDFILEINFO, which is all DWORD: ✔️
-
Structs
- Wrapped in the STRUCT! macro, matches C structure: ✔️
src/um/versrc.rs
Outdated
@@ -0,0 +1,105 @@ | |||
// Licensed under the Apache License, Version 2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
File should be renamed verrsrc.rs
Co-authored-by: Robin Lambertz <[email protected]>
Co-authored-by: Robin Lambertz <[email protected]>
Co-authored-by: Robin Lambertz <[email protected]>
Co-authored-by: Robin Lambertz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
All problems from previous review fixed!
Added missing functions to winver.rs
Reordered winver.rs to match the order of the original header
Replaced explicit pointers in winver.rs with their concise winapi equivalents
Created versrc.rs from versrc.h and populated it with the constants and struct type