Skip to content
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

Update OS_U32ValueWrapper_t name and consider using uintptr_t #869

Closed
skliper opened this issue Mar 10, 2021 · 1 comment · Fixed by #901 or #917
Closed

Update OS_U32ValueWrapper_t name and consider using uintptr_t #869

skliper opened this issue Mar 10, 2021 · 1 comment · Fixed by #901 or #917
Assignees
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented Mar 10, 2021

Is your feature request related to a problem? Please describe.
Confusion in name where U32 is used for a union that'll hold a void *. Also recommendation to consider using uintptr_t

Describe the solution you'd like
Consider rename/uintptr_t use.

Describe alternatives you've considered
None

Additional context
None

Requester Info
Jacob Hageman - NASA/GSFC, OSAL code review

@skliper
Copy link
Contributor Author

skliper commented Mar 10, 2021

If name is appropriate (it is "wrapping" a u32, even though the union is likely 64) maybe add a comment to that affect so the intent is clear.

jphickey added a commit to jphickey/osal that referenced this issue Mar 12, 2021
The "U32" designator in the name had become confusing because all
the members had over time migrated to a non-uint32/dedicated type.

The point is to pass a value through a void* so a name change better
indicates that purpose.
jphickey added a commit to jphickey/osal that referenced this issue Mar 12, 2021
The "U32" designator in the name had become confusing because all
the members had over time migrated to a non-uint32/dedicated type.

The point is to pass a value through a void* so a name change better
indicates that purpose.
astrogeco added a commit that referenced this issue Mar 22, 2021
jphickey pushed a commit to jphickey/osal that referenced this issue Aug 10, 2022
Fix nasa#769, Adds name to struct/union/enum typedefs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants