-
Notifications
You must be signed in to change notification settings - Fork 207
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
typedef for status return values #888
Labels
Milestone
Comments
yammajamma
added
CCB:Ready
Ready for discussion at the Configuration Control Board (CCB)
IC-20200916
labels
Sep 16, 2020
CDKnightNASA
added a commit
to CDKnightNASA/cFE
that referenced
this issue
Sep 16, 2020
yammajamma
removed
CCB:Ready
Ready for discussion at the Configuration Control Board (CCB)
IC-20200916
labels
Sep 21, 2020
CDKnightNASA
added a commit
to CDKnightNASA/cFE
that referenced
this issue
Sep 28, 2020
CDKnightNASA
added a commit
to CDKnightNASA/cFE
that referenced
this issue
Sep 30, 2020
This was referenced Sep 30, 2020
CDKnightNASA
added a commit
to CDKnightNASA/cFE
that referenced
this issue
Oct 2, 2020
CDKnightNASA
added a commit
to CDKnightNASA/cFE
that referenced
this issue
Oct 2, 2020
CDKnightNASA
added a commit
to CDKnightNASA/cFE
that referenced
this issue
Oct 2, 2020
astrogeco
added a commit
that referenced
this issue
Oct 2, 2020
Fix #888, Add typedef for function return status codes
astrogeco
added a commit
to nasa/cFS
that referenced
this issue
Oct 2, 2020
astrogeco
added a commit
to nasa/cFS
that referenced
this issue
Oct 6, 2020
Combines - nasa/cFE#936 - nasa/osal#612 *** * Add osal#541 * Add cfe#898 * Add cfe#925 * Add cfe#917 * Add cFE#899 * Add nasa/cFE#888 * Add CFE hotfix for documentation link warnings * Add FastTracked nasa/osal#616 * Set submodules to main for IC-2020-10-07 Co-authored-by: Joseph Hickey <joseph.p.hickey@nasa.gov>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Currently most CFE API's return a status code (the return type defines as int32.) The numeric return type is somewhat unclear and could result in confusion with other types of information (such as inadvertent confusion with return values from OSAL functions or numeric ID's).
Describe the solution you'd like
In order to facilitate better coding practices, I also propose a utility function:
Describe alternatives you've considered
This will require quite a lot of code change but could be migrated incrementally as creating the typedef to the same type will be compatible. Eventually it could be changed to a struct wrapper or enum or something that will result in compiler errors when the type is considered a numeric type.
Requester Info
Christopher.D.Knight@nasa.gov
The text was updated successfully, but these errors were encountered: