-
Notifications
You must be signed in to change notification settings - Fork 325
Build-C-as-C++ Patches #849
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,11 @@ | |
|
|
||
| #include "test.h" | ||
|
|
||
| #ifdef __cplusplus // stronger type checking errors if C built in C++ mode | ||
| using namespace roaring::api; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Upon review I notice this line is actually superfluous: including https://github.com/RoaringBitmap/CRoaring/blob/master/include/roaring/roaring.h#L1367-L1382 Perhaps that points to a potential separation of |
||
| using namespace roaring::misc; | ||
| #endif | ||
|
|
||
| bool roaring_iterator_sumall(uint32_t value, void *param) { | ||
| *(uint32_t *)param += value; | ||
| return true; // iterate till the end | ||
|
|
@@ -162,4 +167,4 @@ int main() { | |
| roaring_bitmap_free(r3); | ||
| printf("Success.\n"); | ||
| return EXIT_SUCCESS; | ||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this comment belongs in the code. That's information for the Git commit message.