Skip to content

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?

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.

3 participants