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

nit: deque: avoid typedef hell #561

Closed
wants to merge 8 commits into from

Conversation

the canonical token is __cplusplus not _cplusplus. When this is
incorrect, linkage fails as cxx will perform name mangling when
including these headers, resulting in a function with that mangle not
existing.

stack-info: PR: #554, branch: aws-nslick/stack/1
Signed-off-by: Nicholas Sielicki <[email protected]>
c++ requires literals not sit directly next to other literals and must
be separated by at least one whitespace token.

stack-info: PR: #555, branch: aws-nslick/stack/2
Signed-off-by: Nicholas Sielicki <[email protected]>
stack-info: PR: #556, branch: aws-nslick/stack/3
Signed-off-by: Nicholas Sielicki <[email protected]>
When using designated initializer lists, under C++ only, a warning will
be emitted if the declaration order does not match the initialization
order if any fields are missing in the initializer list. Reorder these
structs to initialize all fields in their declaration order.

stack-info: PR: #557, branch: aws-nslick/stack/4
Signed-off-by: Nicholas Sielicki <[email protected]>
void pointer arithmetic is illegal in c++; cast to uintptr, do the
offset, then cast to void* to pass to libfabric.

stack-info: PR: #558, branch: aws-nslick/stack/5
Signed-off-by: Nicholas Sielicki <[email protected]>
stack-info: PR: #559, branch: aws-nslick/stack/6
Signed-off-by: Nicholas Sielicki <[email protected]>
@@ -23,21 +23,20 @@ extern "C" {
* this structure as a black box. Critically, the caller must ensure the
Copy link
Contributor

Choose a reason for hiding this comment

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

My comment in 52a6994#r1714461159 needs to be addressed.

stack-info: PR: #560, branch: aws-nslick/stack/7
Signed-off-by: Nicholas Sielicki <[email protected]>
Prefer to define the structures in vanilla C without relying on any
custom typedefs, and move the typedef to the bottom of the file for
consumers to use, if they want.

stack-info: PR: #561, branch: aws-nslick/stack/8
Signed-off-by: Nicholas Sielicki <[email protected]>
@aws-nslick aws-nslick changed the base branch from aws-nslick/stack/7 to master September 4, 2024 19:07
@aws-nslick aws-nslick requested a review from rauteric as a code owner September 4, 2024 19:07
@aws-nslick aws-nslick changed the base branch from master to aws-nslick/stack/7 September 4, 2024 19:07
@aws-nslick
Copy link
Contributor Author

Abandoning this as the build works without it, and it is contentious.

@aws-nslick aws-nslick closed this Sep 4, 2024
@aws-nslick aws-nslick deleted the aws-nslick/stack/8 branch September 6, 2024 20:46
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