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

Fix #3, use sizeof() for header sizes. #23

Merged

Conversation

jphickey
Copy link
Contributor

Describe the contribution
sizeof() will keep this tool in sync if the size of the CFE file or table header should ever change.

Fixes #3

Testing performed
Run the tool and confirm that skipSize is unchanged in practice (still 116).

Expected behavior changes
None

System(s) tested on
Ubuntu 20.04

Additional context
This does implicitly restrict this tool to the CFE build environment where these headers (common_types.h, cfe_fs_extern_typedefs,h, and cfe_tbl_extern_typedefs.h) are available. As a result this will no longer be buildable as a fully standalone/external tool. Based on #3 (comment) this is intended/acceptable but I figured it was worth noting again.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

sizeof() will keep this tool in sync if the size of the CFE
file or table header should ever change.

Note this also implicitly restricts this tool to the CFE build
environment where these headers are available.  As a result
this will no longer be buildable as a fully standalone/external
tool.
@astrogeco
Copy link
Contributor

CCB 2020-11-18 APPROVED

@astrogeco astrogeco changed the base branch from main to integration-candidate December 1, 2020 17:18
@astrogeco astrogeco merged commit bd2dcbb into nasa:integration-candidate Dec 1, 2020
astrogeco added a commit to astrogeco/cFS that referenced this pull request Dec 1, 2020
astrogeco added a commit to astrogeco/cFS that referenced this pull request Dec 2, 2020
@jphickey jphickey deleted the fix-3-use-sizeof-hdrs branch June 8, 2021 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tblCRCTool hardcodes table file header size
4 participants