You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I remember correctly, this originally was an internal routine, but it was deemed useful because it actually confirms the object ID is of the expected/intended object type, unlike OS_ConvertToArrayIndex which will accept any object type. The latter was not removed/deprecated though, since it is an easy drop-in to fix legacy code which used osal ID as an array index directly. But new code should prefer the better error checking provided by OS_ObjectIdToArrayIndex.
skliper
added a commit
to skliper/osal
that referenced
this issue
May 19, 2021
Is your feature request related to a problem? Please describe.
'OS_ObjectIdToArrayIndex
is an external API:osal/src/os/inc/osapi-idmap.h
Lines 203 to 232 in 706f0de
Yet internally there's a few style patterns and references that treat it like it's internal:
osal/src/os/shared/src/osapi-idmap.c
Lines 1529 to 1543 in 706f0de
osal/src/os/shared/src/osapi-idmap.c
Line 1413 in 706f0de
Note the implementation file itself has some inconsistencies:
osal/src/os/shared/src/osapi-idmap.c
Lines 41 to 42 in 706f0de
osal/src/os/shared/src/osapi-idmap.c
Lines 129 to 133 in 706f0de
osal/src/os/shared/src/osapi-idmap.c
Lines 135 to 142 in 706f0de
osal/src/os/shared/src/osapi-idmap.c
Lines 230 to 233 in 706f0de
Describe the solution you'd like
Update comments, make sure headers are in the right place
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC
The text was updated successfully, but these errors were encountered: