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

Feature/c #1

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Feature/c #1

wants to merge 9 commits into from

Conversation

sclaiborne
Copy link
Member

@sclaiborne sclaiborne commented Oct 27, 2021

Convert RingBufLib to a C library. Why? Because C is better and maybe more importantly I need to to compile outside of BR.

@sclaiborne
Copy link
Member Author

Anyone care to review this?

@Joshpolansky
Copy link
Member

did you test it?

RingBuf.c Outdated Show resolved Hide resolved
if( ibuf->MaxValues > 0 ) {
returnValue=ERR_OK;
} else {
returnValue= DINT_TO_UINT(RING_BUF_ERR_MAX_VALUES_ZERO);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove these or macro them?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can, they are macros defined in the same file

@sclaiborne
Copy link
Member Author

I added unit tests

not sure if we are still doing this
@sclaiborne
Copy link
Member Author

We good to merge this?

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.

2 participants